]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/init.cpp
fixed a big memory leak in DoDrawBitmap() (coverity checker CID 57)
[wxWidgets.git] / src / common / init.cpp
index 9b87e1815244d7fbf73bbd262ffa881a144a862a..258539e3ff02aafbdd4e739354862ea1820cee43 100644 (file)
@@ -477,7 +477,7 @@ void wxUninitialize()
 {
     wxCRIT_SECT_LOCKER(lockInit, gs_initData.csInit);
 
-    if ( !--gs_initData.nInitCount )
+    if ( --gs_initData.nInitCount == 0 )
     {
         wxEntryCleanup();
     }