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-25 10:02:14 -0800 |
commit | 4f9fc64d1d18f86ab3da7d4f5b49c9ba361726ef (patch) | |
tree | 1c13900d56bd2f56a49caf5d6004423f870ee837 | |
parent | 36454b419e4b65c5c31818f0e2fb6c2bcd86dcc3 (diff) | |
download | native-android-6.0.1_r18.tar.gz |
DO NOT MERGE IGraphicBufferProducer: fix QUEUE_BUFFER info leakandroid-6.0.1_r18
Bug: 26338109
Change-Id: I8a979469bfe1e317ebdefa43685e19f9302baea8
(cherry picked from commit d06421fd37fbb7fd07002e6738fac3a223cb1a62)
-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 8bdbc22ec9..1099c84f85 100644 --- a/libs/gui/IGraphicBufferProducer.cpp +++ b/libs/gui/IGraphicBufferProducer.cpp @@ -402,6 +402,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; |