summaryrefslogtreecommitdiffstats
path: root/libs/ui
diff options
context:
space:
mode:
authorCaio Schnepper <caioschnepper@gmail.com>2015-11-23 18:39:58 -0200
committerCaio Schnepper <caioschnepper@gmail.com>2015-11-23 18:39:58 -0200
commiteed845539a496fd7a5e79a7aefeb0bb87b0c3b53 (patch)
tree58e57de95f1d82ca03fdfdd9b0056eefc4060403 /libs/ui
parent05e03ad50871dd8d3283c733b7f38794b029aaab (diff)
downloadframeworks_native-eed845539a496fd7a5e79a7aefeb0bb87b0c3b53.zip
frameworks_native-eed845539a496fd7a5e79a7aefeb0bb87b0c3b53.tar.gz
frameworks_native-eed845539a496fd7a5e79a7aefeb0bb87b0c3b53.tar.bz2
libgui: Don't assign handle to NULL after free
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
Diffstat (limited to 'libs/ui')
-rw-r--r--libs/ui/GraphicBuffer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ui/GraphicBuffer.cpp b/libs/ui/GraphicBuffer.cpp
index 0d77727..d823938 100644
--- a/libs/ui/GraphicBuffer.cpp
+++ b/libs/ui/GraphicBuffer.cpp
@@ -112,7 +112,11 @@ void GraphicBuffer::free_handle()
GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
allocator.free(handle);
}
+
+#ifndef EXYNOS4_ENHANCEMENTS
handle = NULL;
+#endif
+
mWrappedBuffer = 0;
}