forked from mia/Aegisub
Fixed a memory leak that would occur after using any help button
Originally committed to SVN as r3050.
This commit is contained in:
parent
0ff5b0194e
commit
3568774cab
3 changed files with 6 additions and 0 deletions
|
@ -585,6 +585,7 @@ void FrameMain::DeInitContents() {
|
|||
delete AssFile::top;
|
||||
delete EditBox;
|
||||
delete videoBox;
|
||||
HelpButton::ClearPages();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -125,3 +125,7 @@ void HelpButton::InitStatic() {
|
|||
page[_T("Visual Typesetting")] = _T("Visual_Typesetting");
|
||||
}
|
||||
}
|
||||
|
||||
void HelpButton::ClearPages() {
|
||||
if (pages) delete pages;
|
||||
}
|
||||
|
|
|
@ -57,4 +57,5 @@ public:
|
|||
HelpButton(wxWindow *parent,wxString page=_T(""),wxPoint position=wxDefaultPosition,wxSize size=wxDefaultSize);
|
||||
|
||||
static void OpenPage(const wxString page);
|
||||
static void ClearPages();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue