one less memory leak

Originally committed to SVN as r60.
This commit is contained in:
Fredrik Mellbin 2006-02-03 00:22:16 +00:00
parent e8d6eee1b0
commit 715a346d84
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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);