From acf2f5fa40be07208300092dfcef2fd5caa20370 Mon Sep 17 00:00:00 2001 From: harukalover Date: Thu, 21 May 2009 22:15:32 +0000 Subject: [PATCH] Fixed some memory leaks in the style manager detected by valgrind Originally committed to SVN as r2963. --- aegisub/src/dialog_style_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aegisub/src/dialog_style_manager.cpp b/aegisub/src/dialog_style_manager.cpp index 149fa16f3..c74c4676b 100644 --- a/aegisub/src/dialog_style_manager.cpp +++ b/aegisub/src/dialog_style_manager.cpp @@ -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); }