webengine/osswebengine/WebCore/platform/TextEncodingRegistry.cpp
changeset 10 a359256acfc6
parent 5 10e98eab6f85
child 11 c8a366e56285
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
   249 }
   249 }
   250 
   250 
   251 #if PLATFORM(SYMBIAN)
   251 #if PLATFORM(SYMBIAN)
   252 void deleteEncodingMaps()
   252 void deleteEncodingMaps()
   253 {
   253 {
   254     delete textEncodingNameMap;
   254     if( textEncodingNameMap ) {
   255     textEncodingNameMap = NULL;
   255         textEncodingNameMap->clear();
   256     delete textCodecMap;
   256         delete textEncodingNameMap;
   257     textCodecMap = NULL;
   257         textEncodingNameMap = NULL;
       
   258     }
       
   259     if( textCodecMap ) {
       
   260         textCodecMap->clear();
       
   261         delete textCodecMap;
       
   262         textCodecMap = NULL;
       
   263     }
   258     didExtendTextCodecMaps = false;
   264     didExtendTextCodecMaps = false;
   259 }
   265 }
   260 #endif
   266 #endif
   261 
   267 
   262 } // namespace WebCore
   268 } // namespace WebCore