Bug 749750 - Correctly ref created Surfaces on Android r=blassey

This commit is contained in:
James Willcox 2012-04-27 16:10:03 -04:00
parent 4b0d6b0c67
commit 390afef192

View File

@ -2099,7 +2099,7 @@ AndroidBridge::CreateSurface()
jobject surface = env->CallStaticObjectMethod(mGeckoAppShellClass, jCreateSurface);
if (surface)
env->NewGlobalRef(surface);
surface = env->NewGlobalRef(surface);
return surface;
#endif