diff options
author | Robert Shih <robertshih@google.com> | 2016-01-15 01:26:59 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-15 01:26:59 +0000 |
commit | 7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b (patch) | |
tree | 9320b27d4d9aef14f0c7d9f81ea90698b04993f9 /libs | |
parent | a2685ebb1ec5ed523fb4800d2593f2ae0c10ed22 (diff) | |
parent | dded8fdbb700d6cc498debc69a780915bc34d755 (diff) | |
download | frameworks_native-7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b.zip frameworks_native-7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b.tar.gz frameworks_native-7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b.tar.bz2 |
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
am: dded8fdbb7
* commit 'dded8fdbb700d6cc498debc69a780915bc34d755':
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 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); |