From f7ae43f080576ef142d3884073df298294860328 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 29 Dec 2008 15:16:37 +0000 Subject: [PATCH] fix memory leak while testing for correct Clone() implementation (closes #10304) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/init.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/init.cpp b/src/common/init.cpp index 49e211f064..934ba275d2 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -282,6 +282,7 @@ static bool DoCommonPostInit() wxLogWarning("The event class '%s' does not correctly implement Clone()!", ci->GetClassName()); + delete cloned; delete test; } #endif -- 2.45.2