From c84a44dc59683782c6fe21455d959de740730abc Mon Sep 17 00:00:00 2001 From: Fredrik Mellbin Date: Fri, 3 Feb 2006 00:58:26 +0000 Subject: [PATCH] More deleaking Originally committed to SVN as r61. --- core/frame_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/frame_main.cpp b/core/frame_main.cpp index 434ab21cd..a1b9538a0 100644 --- a/core/frame_main.cpp +++ b/core/frame_main.cpp @@ -376,6 +376,10 @@ void FrameMain::InitContents() { } void FrameMain::DeInitContents() { + //ghetto hack to free all AssFile junk properly, eliminates lots of memory leaks + AssFile::StackReset(); + delete AssFile::top; + delete EditBox; delete videoBox; }