]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/init.cpp
compilation fix for g++ which doesn't like using wxLogMessage in wxON_BLOCK_SCOPE_EXIT
[wxWidgets.git] / src / common / init.cpp
index 49e211f064ec8f8b8dec40ba8196ef2ad2117c5d..934ba275d2a962242c99da87dda8ca37d277ef58 100644 (file)
@@ -282,6 +282,7 @@ static bool DoCommonPostInit()
             wxLogWarning("The event class '%s' does not correctly implement Clone()!",
                          ci->GetClassName());
 
+        delete cloned;
         delete test;
     }
 #endif