diff options
author | Robert Shih <robertshih@google.com> | 2016-01-15 01:45:18 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-15 01:45:18 +0000 |
commit | 202aaa8f97083b68c0a736f4cd432f61c9b0989d (patch) | |
tree | e2ae821a0a8c931de831e832073d1b1f83d9e371 /libs | |
parent | f1de4547c14467c03b00187efde5381dd1fb265c (diff) | |
parent | dc252255af835bb3a69bc9a0d01da12419c0fc05 (diff) | |
download | frameworks_native-202aaa8f97083b68c0a736f4cd432f61c9b0989d.zip frameworks_native-202aaa8f97083b68c0a736f4cd432f61c9b0989d.tar.gz frameworks_native-202aaa8f97083b68c0a736f4cd432f61c9b0989d.tar.bz2 |
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7 am: 7ee203b59d
am: dc252255af
* commit 'dc252255af835bb3a69bc9a0d01da12419c0fc05':
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); |