fixed more leaks

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1221 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-30 12:38:35 +00:00
parent fcfb02fbaa
commit 7d8a15f2db
7 changed files with 40 additions and 16 deletions

View File

@@ -131,9 +131,11 @@ void engine::destroy( void )
presetPreviewPlayHandle::cleanup();
instrumentTrackView::cleanupWindowPool();
delete s_song;
s_song->clearAllTracks();
delete s_bbTrackContainer;
s_bbTrackContainer = NULL;
delete s_dummyTC;
s_dummyTC = NULL;
delete s_mixer;
s_mixer = NULL;
@@ -147,6 +149,9 @@ void engine::destroy( void )
s_projectJournal = NULL;
s_mainWindow = NULL;
delete s_song;
s_song = NULL;
delete configManager::inst();
}