X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8855e47254a28f5141524b3aaaac03c2944e997..959b1a338e3b7c0e237b53ef3d7c9b51f4063eb6:/src/common/object.cpp diff --git a/src/common/object.cpp b/src/common/object.cpp index 78f63ab0a8..4cb6e34b0f 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -208,15 +208,6 @@ wxClassInfo *wxClassInfo::FindClass(const wxChar *className) } } -void wxClassInfo::CleanUp() -{ - if ( sm_classTable ) - { - delete sm_classTable; - sm_classTable = NULL; - } -} - void wxClassInfo::Register() { if ( !sm_classTable ) @@ -310,7 +301,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; }