OSDN Git Service

libgui: Don't assign handle to NULL after free
authorCaio Schnepper <caioschnepper@gmail.com>
Mon, 23 Nov 2015 20:39:58 +0000 (18:39 -0200)
committerSteve Kondik <steve@cyngn.com>
Thu, 1 Sep 2016 06:33:23 +0000 (23:33 -0700)
This reverts c784dfc39fa1471b0f653206970ac9a256269256 for exynos4 devices
with Mali 400 GPUs, which causes a fatal signal (SIGSEGV) and death of
the graphics subsystem

Change-Id: I6dbf8f8664fca01baf63fece7c64016609fe3e1c

libs/ui/GraphicBuffer.cpp

index 4fe0946..b36492d 100644 (file)
@@ -113,7 +113,11 @@ void GraphicBuffer::free_handle()
         GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
         allocator.free(handle);
     }
+
+#ifndef EXYNOS4_ENHANCEMENTS
     handle = NULL;
+#endif
+
     mWrappedBuffer = 0;
 }