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::~FrameMain () {
DeInitContents();
}
@ -374,6 +375,10 @@ void FrameMain::InitContents() {
Layout();
}
void FrameMain::DeInitContents() {
delete EditBox;
delete videoBox;
}
//////////////////
// Update toolbar

View File

@ -97,6 +97,7 @@ private:
void InitToolbar();
void InitContents();
void DeInitContents();
void OnAutoSave(wxTimerEvent &event);
void OnStatusClear(wxTimerEvent &event);