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

Commit 624ca1db authored by Caio Schnepper's avatar Caio Schnepper Committed by Steve Kondik
Browse files

libgui: Don't assign handle to NULL after free

This reverts c784dfc3 for exynos4 devices
with Mali 400 GPUs, which causes a fatal signal (SIGSEGV) and death of
the graphics subsystem

Change-Id: I6dbf8f8664fca01baf63fece7c64016609fe3e1c
parent 6484426f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -113,7 +113,11 @@ void GraphicBuffer::free_handle()
        GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
        allocator.free(handle);
    }

#ifndef EXYNOS4_ENHANCEMENTS
    handle = NULL;
#endif

    mWrappedBuffer = 0;
}