reimplemented sanity checks that were lost/broken in the regrettably
far to hasty last minute pushmepullyou api changes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -216,11 +216,11 @@ name##PluginSentinel m_pluginsentinel;
|
||||
const wxString name::name##PluginSentinel::sm_className(#name); \
|
||||
name::name##PluginSentinel::name##PluginSentinel() { \
|
||||
wxDLManifestEntry *e = (wxDLManifestEntry*) wxDLManifestEntry::ms_classes.Get(#name); \
|
||||
if( e != 0 ) { e->Ref(); } \
|
||||
if( e != 0 ) { e->RefObj(); } \
|
||||
} \
|
||||
name::name##PluginSentinel::~##name##PluginSentinel() { \
|
||||
wxDLManifestEntry *e = (wxDLManifestEntry*) wxDLManifestEntry::ms_classes.Get(#name); \
|
||||
if( e != 0 ) { wxCHECK_RET( !e->Unref(), _T("premature library unlinking") ); } \
|
||||
if( e != 0 ) { e->UnrefObj(); } \
|
||||
}
|
||||
#else
|
||||
|
||||
|
Reference in New Issue
Block a user