Patch #2800 2009-07-30 20:38

techy

Various memory problem fixes (part 6)
Download
2800-Various_memory.patch (612 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2009-08-24 07:32
Assigned to
mortenmacfly
Index: src/sdk/manager.cpp
===================================================================
--- src/sdk/manager.cpp    (revision 5716)
+++ src/sdk/manager.cpp    (working copy)
@@ -81,6 +81,16 @@
         }
     }
 
+    for (LogEventSinksMap::iterator mit = m_LogEventSinks.begin(); mit != m_LogEventSinks.end(); ++mit)
+    {
+        LogEventSinksArray::iterator it = mit->second.begin();
+        while (mit->second.size())
+        {
+            delete (*(mit->second.begin()));
+            mit->second.erase(mit->second.begin());
+        }
+    }
+
 //    Shutdown();
     CfgMgrBldr::Free(); // only terminate config at the very last moment
 //    FileManager::Free();