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

Commit 22e4cc36 authored by Praveen Chavan's avatar Praveen Chavan Committed by Marco Nelissen
Browse files

libgui: assign handle to NULL after free

to avoid use-after-free situations.

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