projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef2060f
)
delete the command if we failed to execute it (bug 515687)
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Wed, 13 Feb 2002 23:34:25 +0000
(23:34 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Wed, 13 Feb 2002 23:34:25 +0000
(23:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14190
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/common/cmdproc.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/common/cmdproc.cpp
b/src/common/cmdproc.cpp
index f6d7eb8dd594b3c3933bcfea240760ced947bfcf..7466686e7a5c848ea292f1c7efcaf7d3b74c7c8f 100644
(file)
--- a/
src/common/cmdproc.cpp
+++ b/
src/common/cmdproc.cpp
@@
-93,7
+93,12
@@
bool wxCommandProcessor::Submit(wxCommand *command, bool storeIt)
wxCHECK_MSG( command, FALSE, _T("no command in wxCommandProcessor::Submit") );
if ( !DoCommand(*command) )
+ {
+ // the user code expects the command to be deleted anyhow
+ delete command;
+
return FALSE;
+ }
if ( storeIt )
Store(command);