X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9d59ee7e0cbe4acae6153adafb5ddce9a4e65dd..c220a8ec4fcb4e7b620e88c76b0a84be4554b28b:/src/common/cmdproc.cpp 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; }