summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-10-19 11:08:11 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-10-19 11:08:11 -0700
commit08bad20ee7ecbe0da0f1caa9455a54f1948e35b9 (patch)
treed0ba89c14707ae583b9c681eb52cc8cda629d534 /libs
parentc1c24304316b3cd3bef89169de5aeb33564e756a (diff)
parent827d069afb297b6d96c995c03da9d4ee17e60679 (diff)
downloadframeworks_base-08bad20ee7ecbe0da0f1caa9455a54f1948e35b9.zip
frameworks_base-08bad20ee7ecbe0da0f1caa9455a54f1948e35b9.tar.gz
frameworks_base-08bad20ee7ecbe0da0f1caa9455a54f1948e35b9.tar.bz2
am 827d069a: Merge "SurfaceTexture: free buffers when disconnect fails" into ics-mr0
* commit '827d069afb297b6d96c995c03da9d4ee17e60679': SurfaceTexture: free buffers when disconnect fails
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/SurfaceTextureClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/SurfaceTextureClient.cpp b/libs/gui/SurfaceTextureClient.cpp
index 0bee0f1..98fa171 100644
--- a/libs/gui/SurfaceTextureClient.cpp
+++ b/libs/gui/SurfaceTextureClient.cpp
@@ -409,9 +409,9 @@ int SurfaceTextureClient::connect(int api) {
int SurfaceTextureClient::disconnect(int api) {
LOGV("SurfaceTextureClient::disconnect");
Mutex::Autolock lock(mMutex);
+ freeAllBuffers();
int err = mSurfaceTexture->disconnect(api);
if (!err) {
- freeAllBuffers();
mReqFormat = 0;
mReqWidth = 0;
mReqHeight = 0;