one less memory leak
Originally committed to SVN as r60.
This commit is contained in:
parent
e8d6eee1b0
commit
715a346d84
2 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,7 @@ FrameMain::FrameMain (wxArrayString args)
|
||||||
////////////////////////
|
////////////////////////
|
||||||
// FrameMain destructor
|
// FrameMain destructor
|
||||||
FrameMain::~FrameMain () {
|
FrameMain::~FrameMain () {
|
||||||
|
DeInitContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -374,6 +375,10 @@ void FrameMain::InitContents() {
|
||||||
Layout();
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FrameMain::DeInitContents() {
|
||||||
|
delete EditBox;
|
||||||
|
delete videoBox;
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
// Update toolbar
|
// Update toolbar
|
||||||
|
|
|
@ -97,6 +97,7 @@ private:
|
||||||
|
|
||||||
void InitToolbar();
|
void InitToolbar();
|
||||||
void InitContents();
|
void InitContents();
|
||||||
|
void DeInitContents();
|
||||||
|
|
||||||
void OnAutoSave(wxTimerEvent &event);
|
void OnAutoSave(wxTimerEvent &event);
|
||||||
void OnStatusClear(wxTimerEvent &event);
|
void OnStatusClear(wxTimerEvent &event);
|
||||||
|
|
Loading…
Reference in a new issue