OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6484426
)
libgui: Don't assign handle to NULL after free
author
Caio Schnepper
<caioschnepper@gmail.com>
Mon, 23 Nov 2015 20:39:58 +0000
(18:39 -0200)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/libs/ui/GraphicBuffer.cpp
b/libs/ui/GraphicBuffer.cpp
index
4fe0946
..
b36492d
100644
(file)
--- a/
libs/ui/GraphicBuffer.cpp
+++ b/
libs/ui/GraphicBuffer.cpp
@@
-113,7
+113,11
@@
void GraphicBuffer::free_handle()
GraphicBufferAllocator& allocator(GraphicBufferAllocator::get());
allocator.free(handle);
}
+
+#ifndef EXYNOS4_ENHANCEMENTS
handle = NULL;
+#endif
+
mWrappedBuffer = 0;
}