From: Vadim Zeitlin Date: Wed, 29 Sep 2004 17:17:27 +0000 (+0000) Subject: fixed memory leak in Submit(cmd, false) (bug 1037115) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f530fa27a92ea58071c83aa7bfe0a859626b39e7 fixed memory leak in Submit(cmd, false) (bug 1037115) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index beb3bd77b5..320084dcce 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -106,6 +106,8 @@ bool wxCommandProcessor::Submit(wxCommand *command, bool storeIt) if ( storeIt ) Store(command); + else + delete command; return true; }