Fix crash when unloading a plugin with live user message hooks (bug 3817, r=dvander)
This commit is contained in:
parent
614188c82b
commit
c2c4ed1fe5
@ -130,7 +130,7 @@ void UsrMessageNatives::OnPluginUnloaded(IPlugin *plugin)
|
||||
for (iter=pList->begin(); iter!=pList->end(); iter++)
|
||||
{
|
||||
pListener = (*iter);
|
||||
if (g_UserMsgs.UnhookUserMessage(pListener->GetMessageId(), pListener, pListener->IsInterceptHook()))
|
||||
if (g_UserMsgs.UnhookUserMessage2(pListener->GetMessageId(), pListener, pListener->IsInterceptHook()))
|
||||
{
|
||||
m_FreeListeners.push(pListener);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user