--- a/webengine/osswebengine/WebCore/platform/TextEncodingRegistry.cpp Fri Jul 03 15:54:40 2009 +0100
+++ b/webengine/osswebengine/WebCore/platform/TextEncodingRegistry.cpp Thu Aug 27 07:44:59 2009 +0300
@@ -251,10 +251,16 @@
#if PLATFORM(SYMBIAN)
void deleteEncodingMaps()
{
- delete textEncodingNameMap;
- textEncodingNameMap = NULL;
- delete textCodecMap;
- textCodecMap = NULL;
+ if( textEncodingNameMap ) {
+ textEncodingNameMap->clear();
+ delete textEncodingNameMap;
+ textEncodingNameMap = NULL;
+ }
+ if( textCodecMap ) {
+ textCodecMap->clear();
+ delete textCodecMap;
+ textCodecMap = NULL;
+ }
didExtendTextCodecMaps = false;
}
#endif