]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed memory leak in Submit(cmd, false) (bug 1037115)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 29 Sep 2004 17:17:27 +0000 (17:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 29 Sep 2004 17:17:27 +0000 (17:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmdproc.cpp

index beb3bd77b5b4563e9e8e07538d8309a208f0338c..320084dcce81a8c7de9e3fad425fad9cfbb642ee 100644 (file)
@@ -106,6 +106,8 @@ bool wxCommandProcessor::Submit(wxCommand *command, bool storeIt)
 
     if ( storeIt )
         Store(command);
+    else
+        delete command;
 
     return true;
 }