mirror of https://github.com/odrling/Aegisub
Fixed some memory leaks in the style manager detected by valgrind
Originally committed to SVN as r2963.
This commit is contained in:
parent
68d2681193
commit
acf2f5fa40
|
@ -228,6 +228,9 @@ DialogStyleManager::~DialogStyleManager() {
|
||||||
if (sel != wxNOT_FOUND) {
|
if (sel != wxNOT_FOUND) {
|
||||||
AssFile::top->SetScriptInfo(_T("Last Style Storage"),CatalogList->GetString(sel));
|
AssFile::top->SetScriptInfo(_T("Last Style Storage"),CatalogList->GetString(sel));
|
||||||
}
|
}
|
||||||
|
CatalogList->PopEventHandler(true);
|
||||||
|
StorageList->PopEventHandler(true);
|
||||||
|
CurrentList->PopEventHandler(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue