mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
de25c50f93
commit
adb2bf751a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user