diff options
author | Robert Shih <robertshih@google.com> | 2016-01-11 15:02:12 -0800 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2016-01-22 14:44:20 -0800 |
commit | b8a86fe81c0da124d04630b9b3327482fef6220a (patch) | |
tree | 623c13f13aa3319efd81292701ed7858f0555c15 | |
parent | d9b370cf4d8cbc5972023bd9dde2174d9d965191 (diff) | |
download | native-b8a86fe81c0da124d04630b9b3327482fef6220a.tar.gz |
IGraphicBufferProducer: fix QUEUE_BUFFER info leakandroid-5.1.1_r36android-5.1.1_r35
Bug: 26338109
Change-Id: I8a979469bfe1e317ebdefa43685e19f9302baea8
-rw-r--r-- | libs/gui/IGraphicBufferProducer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/IGraphicBufferProducer.cpp b/libs/gui/IGraphicBufferProducer.cpp index 4f7b0d30e4..67690b70dc 100644 --- a/libs/gui/IGraphicBufferProducer.cpp +++ b/libs/gui/IGraphicBufferProducer.cpp @@ -357,6 +357,7 @@ status_t BnGraphicBufferProducer::onTransact( QueueBufferOutput* const output = reinterpret_cast<QueueBufferOutput *>( reply->writeInplace(sizeof(QueueBufferOutput))); + memset(output, 0, sizeof(QueueBufferOutput)); status_t result = queueBuffer(buf, input, output); reply->writeInt32(result); return NO_ERROR; |