X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9d59ee7e0cbe4acae6153adafb5ddce9a4e65dd..b4efc9b9315fc9387c44dc5e968dc422b12e7920:/src/common/cmdproc.cpp?ds=sidebyside diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index beb3bd77b5..0bfe20d3f5 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -53,10 +53,6 @@ wxCommand::wxCommand(bool canUndoIt, const wxString& name) m_commandName = name; } -wxCommand::~wxCommand() -{ -} - // ---------------------------------------------------------------------------- // Command processor // ---------------------------------------------------------------------------- @@ -106,6 +102,8 @@ bool wxCommandProcessor::Submit(wxCommand *command, bool storeIt) if ( storeIt ) Store(command); + else + delete command; return true; }