summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-15 01:45:18 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-15 01:45:18 +0000
commit202aaa8f97083b68c0a736f4cd432f61c9b0989d (patch)
treee2ae821a0a8c931de831e832073d1b1f83d9e371
parentf1de4547c14467c03b00187efde5381dd1fb265c (diff)
parentdc252255af835bb3a69bc9a0d01da12419c0fc05 (diff)
downloadframeworks_native-202aaa8f97083b68c0a736f4cd432f61c9b0989d.zip
frameworks_native-202aaa8f97083b68c0a736f4cd432f61c9b0989d.tar.gz
frameworks_native-202aaa8f97083b68c0a736f4cd432f61c9b0989d.tar.bz2
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d
am: dc252255af * commit 'dc252255af835bb3a69bc9a0d01da12419c0fc05': IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
-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 b86f4c5..c4660ba 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);