X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ee96a251c9556d4d410a860c211a56834f18c7f..c56ae04274fda26269c6d06be34cf59a45eb70ce:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index 9b87e18152..258539e3ff 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -477,7 +477,7 @@ void wxUninitialize() { wxCRIT_SECT_LOCKER(lockInit, gs_initData.csInit); - if ( !--gs_initData.nInitCount ) + if ( --gs_initData.nInitCount == 0 ) { wxEntryCleanup(); }