From 97a9884edcc6fbb311386ecfcd6e3045437f0df0 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 3 Aug 2011 15:18:36 -0700 Subject: [PATCH] Add a 'release' method to the SurfaceTexture public Java API Bug: 5063618 Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8 --- libs/gui/SurfaceTexture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp index 4f51f03dd..1a036ee57 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp @@ -910,6 +910,7 @@ void SurfaceTexture::abandon() { Mutex::Autolock lock(mMutex); freeAllBuffers(); mAbandoned = true; + mCurrentTextureBuf.clear(); mDequeueCondition.signal(); }