remove some memory leaks in example code.
This commit is contained in:
@@ -312,7 +312,10 @@ void profileWindowSetVisible(MyProfileWindow* window, bool visible)
|
||||
void destroyProfileWindow(MyProfileWindow* window)
|
||||
{
|
||||
CProfileManager::Release_Iterator(window->profIter);
|
||||
delete window->m_menuItems;
|
||||
delete window;
|
||||
CProfileManager::CleanupMemory();
|
||||
|
||||
}
|
||||
|
||||
#endif //BT_NO_PROFILE
|
||||
|
||||
Reference in New Issue
Block a user