summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-11 11:42:48 -0800
committerRobert Shih <robertshih@google.com>2016-01-11 11:47:42 -0800
commitdded8fdbb700d6cc498debc69a780915bc34d755 (patch)
tree9d5d2f18aa21bb11828361ca74285f5eba8c69da /libs
parentdbc9a478311e8728c8148a80abb103fca697891d (diff)
downloadframeworks_native-dded8fdbb700d6cc498debc69a780915bc34d755.zip
frameworks_native-dded8fdbb700d6cc498debc69a780915bc34d755.tar.gz
frameworks_native-dded8fdbb700d6cc498debc69a780915bc34d755.tar.bz2
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
Bug: 26338113 Change-Id: I019c4df2c6adbc944122df96968ddd11a02ebe33
Diffstat (limited to 'libs')
-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 f6d087d..dc917a8 100644
--- a/libs/gui/IGraphicBufferConsumer.cpp
+++ b/libs/gui/IGraphicBufferConsumer.cpp
@@ -444,7 +444,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);