git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61037
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// wxObjectRefData
// ----------------------------------------------------------------------------
-void wxObjectRefData::DecRef()
+void wxRefCounter::DecRef()
{
+ wxASSERT_MSG( m_count > 0, "invalid ref data count" );
+
if ( --m_count == 0 )
delete this;
}
{
if ( m_refData )
{
- wxASSERT_MSG( m_refData->m_count > 0, _T("invalid ref data count") );
-
m_refData->DecRef();
m_refData = NULL;
}