libgui: assign handle to NULL after free

to avoid use-after-free situations

Change-Id: If9c09f509bc55795856302e5ca34470df019c622
This commit is contained in:
Praveen Chavan 2015-09-16 11:20:00 -07:00 committed by Gerrit - the friendly Code Review server
parent dfab0ee254
commit c57c920c26

View File

@ -112,6 +112,7 @@ void GraphicBuffer::free_handle()
GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
allocator.free(handle);
}
handle = NULL;
mWrappedBuffer = 0;
}