From 23833f2b824beea4c4c767430ed47041636cac89 Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Wed, 4 Mar 2015 10:51:00 +0000 Subject: [PATCH] Glide Config/About dialog memory leak fix? I'm still getting this one. Haven't a clue about it. >Order, Source File, Line Number, Mem Size 4332,Unknown, 0, 64 --- Source/Glide64/Config.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Glide64/Config.cpp b/Source/Glide64/Config.cpp index ed359d359..2d240287a 100644 --- a/Source/Glide64/Config.cpp +++ b/Source/Glide64/Config.cpp @@ -1122,6 +1122,7 @@ void CALL DllConfig ( HWND hParent ) Glide64ConfigDialog* Glide64Config = new Glide64ConfigDialog(hostWindow, wxID_ANY, wxEmptyString); Glide64Config->ShowModal(); + delete hostWindow; } /*#ifndef _DEBUG @@ -1304,5 +1305,6 @@ void CALL DllAbout ( HWND hParent ) hostWindow->Enable(); // hostWindow->UnsubclassWin(); hostWindow->SetHWND(NULL); + delete hostWindow; #endif }