]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdproc.cpp
added wxUmaskChanger class and wxCHANGE_UMASK macro and use them instead of duplicati...
[wxWidgets.git] / src / common / cmdproc.cpp
index beb3bd77b5b4563e9e8e07538d8309a208f0338c..320084dcce81a8c7de9e3fad425fad9cfbb642ee 100644 (file)
@@ -106,6 +106,8 @@ bool wxCommandProcessor::Submit(wxCommand *command, bool storeIt)
 
     if ( storeIt )
         Store(command);
+    else
+        delete command;
 
     return true;
 }