diff options
author | Praveen Chavan <pchavan@codeaurora.org> | 2015-09-16 11:20:00 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-31 03:19:42 -0700 |
commit | c784dfc39fa1471b0f653206970ac9a256269256 (patch) | |
tree | 80d8819d7cef703e7351b64c970b67a2c15f15bc /libs/ui | |
parent | d15d2252b026322317a584ccbcc8b0c05b7d6d7f (diff) | |
download | frameworks_native-c784dfc39fa1471b0f653206970ac9a256269256.zip frameworks_native-c784dfc39fa1471b0f653206970ac9a256269256.tar.gz frameworks_native-c784dfc39fa1471b0f653206970ac9a256269256.tar.bz2 |
libgui: assign handle to NULL after free
to avoid use-after-free situations
Change-Id: If9c09f509bc55795856302e5ca34470df019c622
Diffstat (limited to 'libs/ui')
-rw-r--r-- | libs/ui/GraphicBuffer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ui/GraphicBuffer.cpp b/libs/ui/GraphicBuffer.cpp index e55db30..0d77727 100644 --- a/libs/ui/GraphicBuffer.cpp +++ b/libs/ui/GraphicBuffer.cpp @@ -112,6 +112,7 @@ void GraphicBuffer::free_handle() GraphicBufferAllocator& allocator(GraphicBufferAllocator::get()); allocator.free(handle); } + handle = NULL; mWrappedBuffer = 0; } |