summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorbenm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 16:32:51 +0000
committerbenm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-08 16:32:51 +0000
commit992ec97070b24798e3373a5070189330541edb71 (patch)
tree3b604150724e22ccf60a5868f31586d91093623b /content
parent190d06bf03d4c310f042396046b2b5b5f7af43cf (diff)
downloadchromium_src-992ec97070b24798e3373a5070189330541edb71.zip
chromium_src-992ec97070b24798e3373a5070189330541edb71.tar.gz
chromium_src-992ec97070b24798e3373a5070189330541edb71.tar.bz2
[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
Diffstat (limited to 'content')
-rw-r--r--content/common/android/surface_texture_bridge.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/common/android/surface_texture_bridge.cc b/content/common/android/surface_texture_bridge.cc
index eb4b27e..7026919 100644
--- a/content/common/android/surface_texture_bridge.cc
+++ b/content/common/android/surface_texture_bridge.cc
@@ -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;
}