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:
@@ -106,6 +106,8 @@ bool wxCommandProcessor::Submit(wxCommand *command, bool storeIt)
|
||||
|
||||
if ( storeIt )
|
||||
Store(command);
|
||||
else
|
||||
delete command;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user