]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdproc.cpp
Added missing newline for Windows debug output
[wxWidgets.git] / src / common / cmdproc.cpp
index beb3bd77b5b4563e9e8e07538d8309a208f0338c..0bfe20d3f59f2320515938ad1eb2faf90a893e4c 100644 (file)
@@ -53,10 +53,6 @@ wxCommand::wxCommand(bool canUndoIt, const wxString& name)
     m_commandName = name;
 }
 
     m_commandName = name;
 }
 
-wxCommand::~wxCommand()
-{
-}
-
 // ----------------------------------------------------------------------------
 // Command processor
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // Command processor
 // ----------------------------------------------------------------------------
@@ -106,6 +102,8 @@ bool wxCommandProcessor::Submit(wxCommand *command, bool storeIt)
 
     if ( storeIt )
         Store(command);
 
     if ( storeIt )
         Store(command);
+    else
+        delete command;
 
     return true;
 }
 
     return true;
 }