Ticket #8847: memoryleak2.patch
File memoryleak2.patch, 1.7 KB (added by , 17 years ago) |
---|
-
gui/newgui.cpp
121 121 _themeChange = false; 122 122 } 123 123 124 NewGui::~NewGui() { 125 delete _theme; 126 } 127 124 128 bool NewGui::loadNewTheme(const Common::String &style) { 125 129 Common::String styleType; 126 130 Common::ConfigFile cfg; -
gui/newgui.h
66 66 friend class Dialog; 67 67 friend class Common::Singleton<SingletonBaseType>; 68 68 NewGui(); 69 ~NewGui(); 69 70 public: 70 71 71 72 // Main entry for the GUI: this will start an event loop that keeps running -
graphics/font.cpp
161 161 free(pf->bits); 162 162 free(pf->offset); 163 163 free(pf->width); 164 free(pf->bbx); 164 165 free(pf); 165 166 } 166 167 -
graphics/scaler.cpp
112 112 } 113 113 114 114 void DestroyScalers(){ 115 #ifndef DISABLE_HQ_SCALERS 115 116 free(RGBtoYUV); 116 117 free(LUT16to32); 117 118 RGBtoYUV = 0; 118 119 LUT16to32 = 0; 120 #endif 119 121 } 120 122 121 123 -
base/main.cpp
332 332 PluginManager::instance().unloadPluginsExcept(NULL); 333 333 PluginManager::instance().destroy(); 334 334 ConfMan.destroy(); 335 delete g_gui.theme();335 g_gui.destroy(); 336 336 337 337 return 0; 338 338 }