Bug 1140616 - Crash when _releaseobject is called on the wrong thread. r=bsmedberg

This commit is contained in:
Jan de Mooij
2015-08-25 13:11:41 +02:00
parent e7ecd470bd
commit 1b3084243c

View File

@@ -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;