Bug 863490 - Part 1: Get the correct JNIEnv for the worker thread that is destroying the Flash plugin. r=blassey

This commit is contained in:
Chris Peterson 2013-04-18 16:35:41 -07:00
parent de25c50f93
commit adb2bf751a

View File

@ -2311,7 +2311,8 @@ AndroidBridge::RegisterSurfaceTextureFrameListener(jobject surfaceTexture, int i
void
AndroidBridge::UnregisterSurfaceTextureFrameListener(jobject surfaceTexture)
{
JNIEnv* env = GetJNIEnv();
// This function is called on a worker thread when the Flash plugin is unloaded.
JNIEnv* env = GetJNIForThread();
if (!env)
return;