diff --git a/widget/src/mac/nsMimeMapper.cpp b/widget/src/mac/nsMimeMapper.cpp index d8780d5c6ead..bfcc90f9bc40 100644 --- a/widget/src/mac/nsMimeMapper.cpp +++ b/widget/src/mac/nsMimeMapper.cpp @@ -46,7 +46,7 @@ #include "nsITransferable.h" #include "nsString.h" #include "nsReadableUtils.h" -#include "nsCRT.h" +#include "plstr.h" #include #include @@ -290,7 +290,7 @@ nsMimeMapperMac::ExportMapping ( short * outLength ) const posInString += strlen(currMapping); // advance marker to get ready for next mapping } nsMemory::Free ( mimeType ); - nsCRT::free ( currMapping ); + delete currMapping; } *posInString = '\0'; // null terminate our resulting string