X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e587bb9ec1de95af31e7ccf1e5e0818ff752b0f..2debe2b120a2b376a57d3f8ec24eb418a23b2710:/src/common/object.cpp?ds=inline diff --git a/src/common/object.cpp b/src/common/object.cpp index c21fdf02f4..05d4dd13b7 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -283,8 +283,7 @@ void wxClassInfo::Unregister() sm_classTable->Delete(m_className); if ( sm_classTable->GetCount() == 0 ) { - delete sm_classTable; - sm_classTable = NULL; + wxDELETE(sm_classTable); } } }