diff options
author | Robert Shih <robertshih@google.com> | 2016-01-15 01:48:17 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-15 01:48:17 +0000 |
commit | ec87aa52189d5d3bbf5df214ab099d5de9f5836c (patch) | |
tree | ac6f1b3891d1ca8ba03562a063d3a311b530127d /libs | |
parent | 37b8c1f77cab3ee9809bcbad81d765ec5bddedce (diff) | |
parent | 202aaa8f97083b68c0a736f4cd432f61c9b0989d (diff) | |
download | frameworks_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')
-rw-r--r-- | libs/gui/IGraphicBufferConsumer.cpp | 2 |
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); |