From 715a346d84d278eacfaf3e9e56c2464d19ed4fc2 Mon Sep 17 00:00:00 2001 From: Fredrik Mellbin Date: Fri, 3 Feb 2006 00:22:16 +0000 Subject: [PATCH] one less memory leak Originally committed to SVN as r60. --- core/frame_main.cpp | 5 +++++ core/frame_main.h | 1 + 2 files changed, 6 insertions(+) diff --git a/core/frame_main.cpp b/core/frame_main.cpp index 87b29e871..434ab21cd 100644 --- a/core/frame_main.cpp +++ b/core/frame_main.cpp @@ -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 diff --git a/core/frame_main.h b/core/frame_main.h index 26980ebfa..72c2d27e4 100644 --- a/core/frame_main.h +++ b/core/frame_main.h @@ -97,6 +97,7 @@ private: void InitToolbar(); void InitContents(); + void DeInitContents(); void OnAutoSave(wxTimerEvent &event); void OnStatusClear(wxTimerEvent &event);