fixed a bug where extensions were forwarded their unload call AFTER being dropped as an identity

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401208
This commit is contained in:
David Anderson 2007-07-29 01:05:58 +00:00
parent 76c34cc268
commit 2f3c518eb1

View File

@ -109,7 +109,6 @@ CExtension::~CExtension()
{ {
if (m_pAPI) if (m_pAPI)
{ {
m_pAPI->OnExtensionUnload();
if (m_PlId) if (m_PlId)
{ {
g_pMMPlugins->Unload(m_PlId, true, NULL, 0); g_pMMPlugins->Unload(m_PlId, true, NULL, 0);
@ -687,6 +686,10 @@ bool CExtensionManager::UnloadExtension(IExtension *_pExt)
} }
} }
} }
/* Tell it to unload */
pAPI = pExt->GetAPI();
pAPI->OnExtensionUnload();
} }
IdentityToken_t *pIdentity; IdentityToken_t *pIdentity;