Update PluginSys.cpp
This commit is contained in:
parent
62142197c1
commit
8f73e5e5a1
@ -1499,15 +1499,15 @@ void CPluginManager::Purge(CPlugin *plugin)
|
||||
if (plugin->GetStatus() == Plugin_Running)
|
||||
plugin->Call_OnPluginEnd();
|
||||
|
||||
m_pOnNotifyPluginUnloaded->PushCell(plugin->GetMyHandle());
|
||||
m_pOnNotifyPluginUnloaded->Execute(NULL);
|
||||
|
||||
// Notify listeners of unloading.
|
||||
if (plugin->EnteredSecondPass()) {
|
||||
for (ListenerIter iter(m_listeners); !iter.done(); iter.next())
|
||||
(*iter)->OnPluginUnloaded(plugin);
|
||||
}
|
||||
|
||||
m_pOnNotifyPluginUnloaded->PushCell(plugin->GetMyHandle());
|
||||
m_pOnNotifyPluginUnloaded->Execute(NULL);
|
||||
|
||||
plugin->DropEverything();
|
||||
|
||||
for (ListenerIter iter(m_listeners); !iter.done(); iter.next())
|
||||
|
Loading…
Reference in New Issue
Block a user