Commit 992ec970 authored by benm@chromium.org's avatar benm@chromium.org

[Android] Fix Java android.view.Surface leak.

Correctly clean up resources when we're finished with the Surface
by invoking release().

Android only change and android bots are green.
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/11791027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175536 0039d316-1c4b-4281-b951-d872f2087c98
parent 190d06bf
......@@ -144,6 +144,7 @@ ANativeWindow* SurfaceTextureBridge::CreateSurface() {
env, j_surface_texture_.obj()));
DCHECK(!jsurface.is_null());
ANativeWindow* native_window = ANativeWindow_fromSurface(env, jsurface.obj());
JNI_Surface::Java_Surface_release(env, jsurface.obj());
return native_window;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment