summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-15 01:50:22 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-15 01:50:22 +0000
commitc5cb7c489bcc3a52abdd4d02fb353b0a7b8557eb (patch)
tree85503bcfc4cb21c4d29b0e28c7d7305bb5acc2ff
parentd983fd11d4a00b03f92d09f32c08840e66d90777 (diff)
parentec87aa52189d5d3bbf5df214ab099d5de9f5836c (diff)
downloadframeworks_native-c5cb7c489bcc3a52abdd4d02fb353b0a7b8557eb.zip
frameworks_native-c5cb7c489bcc3a52abdd4d02fb353b0a7b8557eb.tar.gz
frameworks_native-c5cb7c489bcc3a52abdd4d02fb353b0a7b8557eb.tar.bz2
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d am: dc252255af am: 202aaa8f97
am: ec87aa5218 * commit 'ec87aa52189d5d3bbf5df214ab099d5de9f5836c': 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);