summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-15 01:27:23 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-15 01:27:23 +0000
commit413318311c8cc356dd7e0837ce26e937a9f4c56a (patch)
tree3fa63f02bc2941a4352c9f77f668f6f39304ad2e /libs/gui
parent034bc1799cbbc4184aa507eba181573c0a3b9b35 (diff)
parentd06421fd37fbb7fd07002e6738fac3a223cb1a62 (diff)
downloadframeworks_native-413318311c8cc356dd7e0837ce26e937a9f4c56a.zip
frameworks_native-413318311c8cc356dd7e0837ce26e937a9f4c56a.tar.gz
frameworks_native-413318311c8cc356dd7e0837ce26e937a9f4c56a.tar.bz2
IGraphicBufferProducer: fix QUEUE_BUFFER info leak
am: d06421fd37 * commit 'd06421fd37fbb7fd07002e6738fac3a223cb1a62': IGraphicBufferProducer: fix QUEUE_BUFFER info leak
Diffstat (limited to 'libs/gui')
-rw-r--r--libs/gui/IGraphicBufferProducer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/IGraphicBufferProducer.cpp b/libs/gui/IGraphicBufferProducer.cpp
index d5e86a1..3171b65 100644
--- a/libs/gui/IGraphicBufferProducer.cpp
+++ b/libs/gui/IGraphicBufferProducer.cpp
@@ -223,6 +223,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;