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
This commit is contained in:
Vadim Zeitlin
2004-09-29 17:17:27 +00:00
parent c4dc4cdd5a
commit f530fa27a9

View File

@@ -106,6 +106,8 @@ bool wxCommandProcessor::Submit(wxCommand *command, bool storeIt)
if ( storeIt )
Store(command);
else
delete command;
return true;
}