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

Commit c784dfc3 authored by Praveen Chavan's avatar Praveen Chavan Committed by Steve Kondik
Browse files

libgui: assign handle to NULL after free

to avoid use-after-free situations

Change-Id: If9c09f509bc55795856302e5ca34470df019c622
parent d15d2252
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;
}