Identities are now dropped before extensions unload.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402415
This commit is contained in:
parent
c75d607a00
commit
dd75e88cbb
@ -787,10 +787,6 @@ bool CExtensionManager::UnloadExtension(IExtension *_pExt)
|
||||
|
||||
/* Unbind our natives from Core */
|
||||
pExt->DropEverything();
|
||||
|
||||
/* Tell it to unload */
|
||||
pAPI = pExt->GetAPI();
|
||||
pAPI->OnExtensionUnload();
|
||||
}
|
||||
|
||||
IdentityToken_t *pIdentity;
|
||||
@ -804,6 +800,13 @@ bool CExtensionManager::UnloadExtension(IExtension *_pExt)
|
||||
}
|
||||
}
|
||||
|
||||
/* Tell it to unload */
|
||||
if (pExt->IsLoaded())
|
||||
{
|
||||
IExtensionInterface *pAPI = pExt->GetAPI();
|
||||
pAPI->OnExtensionUnload();
|
||||
}
|
||||
|
||||
pExt->Unload();
|
||||
delete pExt;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user