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; }