mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
one less memory leak
Originally committed to SVN as r60.
This commit is contained in:
parent
e8d6eee1b0
commit
715a346d84
@ -125,6 +125,7 @@ FrameMain::FrameMain (wxArrayString args)
|
||||
////////////////////////
|
||||
// FrameMain destructor
|
||||
FrameMain::~FrameMain () {
|
||||
DeInitContents();
|
||||
}
|
||||
|
||||
|
||||
@ -374,6 +375,10 @@ void FrameMain::InitContents() {
|
||||
Layout();
|
||||
}
|
||||
|
||||
void FrameMain::DeInitContents() {
|
||||
delete EditBox;
|
||||
delete videoBox;
|
||||
}
|
||||
|
||||
//////////////////
|
||||
// Update toolbar
|
||||
|
@ -97,6 +97,7 @@ private:
|
||||
|
||||
void InitToolbar();
|
||||
void InitContents();
|
||||
void DeInitContents();
|
||||
|
||||
void OnAutoSave(wxTimerEvent &event);
|
||||
void OnStatusClear(wxTimerEvent &event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user