diff options
author | Robert Shih <robertshih@google.com> | 2016-01-15 01:43:05 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-15 01:43:05 +0000 |
commit | dc252255af835bb3a69bc9a0d01da12419c0fc05 (patch) | |
tree | 05defcd366659c33929c657ef41b0f98b6b0bc20 | |
parent | 1d94a1d036cb4bc8d9b178f56fa3bbddc81b7f10 (diff) | |
parent | 7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b (diff) | |
download | frameworks_native-dc252255af835bb3a69bc9a0d01da12419c0fc05.zip frameworks_native-dc252255af835bb3a69bc9a0d01da12419c0fc05.tar.gz frameworks_native-dc252255af835bb3a69bc9a0d01da12419c0fc05.tar.bz2 |
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7
am: 7ee203b59d
* commit '7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b':
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
-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 3f23c2f..3c0907a 100644 --- a/libs/gui/IGraphicBufferConsumer.cpp +++ b/libs/gui/IGraphicBufferConsumer.cpp @@ -312,7 +312,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); |