IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
am: dded8fdbb7
* commit 'dded8fdbb700d6cc498debc69a780915bc34d755':
IGraphicBufferConsumer: fix ATTACH_BUFFER info leak
This commit is contained in:
commit
7ee203b59d
@ -444,7 +444,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);
|
||||
|
Loading…
Reference in New Issue
Block a user