summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-15 01:52:25 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-15 01:52:25 +0000
commite8cceaf02f7e15e1ef0c3446c4287ce58cc325ba (patch)
tree3c251a85e0c025508f68ae104c8e3dfc8e522e01
parentb5458e3bafa3917e7cfda1e3200d112951a5a954 (diff)
parentc5cb7c489bcc3a52abdd4d02fb353b0a7b8557eb (diff)
downloadframeworks_native-e8cceaf02f7e15e1ef0c3446c4287ce58cc325ba.zip
frameworks_native-e8cceaf02f7e15e1ef0c3446c4287ce58cc325ba.tar.gz
frameworks_native-e8cceaf02f7e15e1ef0c3446c4287ce58cc325ba.tar.bz2
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af am: 202aaa8f97 am: ec87aa5218
am: c5cb7c489b * commit 'c5cb7c489bcc3a52abdd4d02fb353b0a7b8557eb': 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);