Fixed some memory leaks in the style manager detected by valgrind

Originally committed to SVN as r2963.
This commit is contained in:
harukalover 2009-05-21 22:15:32 +00:00
parent bfce57662e
commit eadf49d10e
1 changed files with 3 additions and 0 deletions

View File

@ -228,6 +228,9 @@ DialogStyleManager::~DialogStyleManager() {
if (sel != wxNOT_FOUND) {
AssFile::top->SetScriptInfo(_T("Last Style Storage"),CatalogList->GetString(sel));
}
CatalogList->PopEventHandler(true);
StorageList->PopEventHandler(true);
CurrentList->PopEventHandler(true);
}