Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c57c920c authored by Praveen Chavan's avatar Praveen Chavan Committed by Gerrit - the friendly Code Review server
Browse files

libgui: assign handle to NULL after free

to avoid use-after-free situations

Change-Id: If9c09f509bc55795856302e5ca34470df019c622
parent dfab0ee2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ void GraphicBuffer::free_handle()
        GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
        allocator.free(handle);
    }
    handle = NULL;
    mWrappedBuffer = 0;
}