summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-11 11:42:48 -0800
committerThe Android Automerger <android-build@google.com>2016-01-22 13:37:16 -0800
commit93312a3a38bc3573c9b15c6a3c4c11fcdcfaa0da (patch)
tree181d54eda07186b51742a4b250e6cbb4b3b54851
parenta78c2e65e13cace4fdbb0295beca5b11de9fde06 (diff)
downloadandroid_frameworks_native-93312a3a38bc3573c9b15c6a3c4c11fcdcfaa0da.tar.gz
android_frameworks_native-93312a3a38bc3573c9b15c6a3c4c11fcdcfaa0da.tar.bz2
android_frameworks_native-93312a3a38bc3573c9b15c6a3c4c11fcdcfaa0da.zip
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
Bug: 26338113 Change-Id: I019c4df2c6adbc944122df96968ddd11a02ebe33
-rw-r--r--libs/gui/IGraphicBufferConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/IGraphicBufferConsumer.cpp b/libs/gui/IGraphicBufferConsumer.cpp
index b86f4c5d2..c4660bad8 100644
--- a/libs/gui/IGraphicBufferConsumer.cpp
+++ b/libs/gui/IGraphicBufferConsumer.cpp
@@ -315,7 +315,7 @@ status_t BnGraphicBufferConsumer::onTransact(
CHECK_INTERFACE(IGraphicBufferConsumer, data, reply);
sp<GraphicBuffer> buffer = new GraphicBuffer();
data.read(*buffer.get());
- int slot;
+ int slot = -1;
int result = attachBuffer(&slot, buffer);
reply->writeInt32(slot);
reply->writeInt32(result);