IGraphicBufferConsumer: fix ATTACH_BUFFER info leak am: dded8fdbb7

am: 7ee203b59d

* commit '7ee203b59d9a74d485ce2fdfd07e96b2d10ff23b':
  IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
This commit is contained in:
Robert Shih 2016-01-15 01:43:05 +00:00 committed by android-build-merger
commit dc252255af

View File

@ -312,7 +312,7 @@ status_t BnGraphicBufferConsumer::onTransact(
CHECK_INTERFACE(IGraphicBufferConsumer, data, reply);
sp<GraphicBuffer> buffer = new GraphicBuffer();
data.read(*buffer.get());
int slot;
int slot = -1;
int result = attachBuffer(&slot, buffer);
reply->writeInt32(slot);
reply->writeInt32(result);