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 307974778f
commit c4333dc394

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