X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8855e47254a28f5141524b3aaaac03c2944e997..3e822cd8d0bdf04cd2c7a3dddff61dcc211f7439:/src/common/object.cpp diff --git a/src/common/object.cpp b/src/common/object.cpp index 78f63ab0a8..87e3dc1ed7 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -310,7 +310,7 @@ void wxObject::UnRef() { wxASSERT_MSG( m_refData->m_count > 0, _T("invalid ref data count") ); - if ( !--m_refData->m_count ) + if ( --m_refData->m_count == 0 ) delete m_refData; m_refData = NULL; }