summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorDave Sparks <davidsparks@android.com>2009-11-06 11:47:13 -0800
committerDave Sparks <davidsparks@android.com>2009-11-06 11:47:13 -0800
commitc8093c11286e3c65fb6de686db17b87b0efb1e56 (patch)
tree68f24cfe8ea87bf8b1e228c9b4afab420c8986d5 /opengl/tests/gl_basic/gl_basic.cpp
parent8b1243e5e4930598e8e78ebd18e7b6cd6fb0445f (diff)
Hold a lock while we access the preview heap.
copyFrameAndPostCopiedFrame was not holding a lock while it accessed the preview heap. If the client process is torn down while the heap is accessed, the memcpy could access memory that was deallocated. This patch creates a local sp reference to the preview heap while holding the lock, then releases the lock. This should prevent the heap from being pulled out from underneath us.
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions