IGraphicBufferProducer: fix QUEUE_BUFFER info leak am: d06421fd37

am: 413318311c

* commit '413318311c8cc356dd7e0837ce26e937a9f4c56a':
  IGraphicBufferProducer: fix QUEUE_BUFFER info leak
This commit is contained in:
Robert Shih 2016-01-15 01:38:56 +00:00 committed by android-build-merger
commit dc9ec35294

View File

@ -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;