summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-15 01:48:17 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-15 01:48:17 +0000
commitec87aa52189d5d3bbf5df214ab099d5de9f5836c (patch)
treeac6f1b3891d1ca8ba03562a063d3a311b530127d /libs/gui
parent37b8c1f77cab3ee9809bcbad81d765ec5bddedce (diff)
parent202aaa8f97083b68c0a736f4cd432f61c9b0989d (diff)
downloadframeworks_native-ec87aa52189d5d3bbf5df214ab099d5de9f5836c.zip
frameworks_native-ec87aa52189d5d3bbf5df214ab099d5de9f5836c.tar.gz
frameworks_native-ec87aa52189d5d3bbf5df214ab099d5de9f5836c.tar.bz2
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af
am: 202aaa8f97 * commit '202aaa8f97083b68c0a736f4cd432f61c9b0989d': IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
Diffstat (limited to 'libs/gui')
-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);