summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorRobert Shih <robertshih@google.com>2016-01-15 01:50:22 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-01-15 01:50:22 +0000
commitedb7c81a1b99d2456910b03db9e4ac250eac2fab (patch)
tree17b739274b1c6d5fbe9b5b7117b9549911aa8cc4 /libs
parentdc252255af835bb3a69bc9a0d01da12419c0fc05 (diff)
parent9d959e275561bcace3aab1f9df009c6c880003fa (diff)
downloadframeworks_native-edb7c81a1b99d2456910b03db9e4ac250eac2fab.zip
frameworks_native-edb7c81a1b99d2456910b03db9e4ac250eac2fab.tar.gz
frameworks_native-edb7c81a1b99d2456910b03db9e4ac250eac2fab.tar.bz2
IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37 am: 413318311c am: dc9ec35294
am: 9d959e2755 * commit '9d959e275561bcace3aab1f9df009c6c880003fa': IGraphicBufferProducer: fix QUEUE_BUFFER info leak
Diffstat (limited to 'libs')
-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 74a40ee..ec05f60 100644
--- a/libs/gui/IGraphicBufferProducer.cpp
+++ b/libs/gui/IGraphicBufferProducer.cpp
@@ -378,6 +378,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;