Bug 1140616 - Crash when _releaseobject is called on the wrong thread. r=bsmedberg
This commit is contained in:
@@ -1242,6 +1242,7 @@ _releaseobject(NPObject* npobj)
|
||||
{
|
||||
if (!NS_IsMainThread()) {
|
||||
NPN_PLUGIN_LOG(PLUGIN_LOG_ALWAYS,("NPN_releaseobject called from the wrong thread\n"));
|
||||
MOZ_CRASH("NPN_releaseobject called from the wrong thread");
|
||||
}
|
||||
if (!npobj)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user