summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jamie Gennis <jgennis@google.com> 2012-09-10 14:49:42 -0700
committer Jamie Gennis <jgennis@google.com> 2012-09-10 14:49:42 -0700
commit98ff0597bd9e57ba133d54f8f09841f96955cba1 (patch)
tree77baaa375ae8ced168d825bf5e8b2afd585f856a
parent61e04b92bdeafc6fca89052d14dab1bd0c384a71 (diff)
SurfaceTexture: eglDestroySync after duping its fd
This change adds a call to eglDestroySync after we've dup'd the fd for the Android fence that the EGLSyncKHR object wraps. Change-Id: I4fa6ece863260793630d70bb9a69d6284d05d99e
-rw-r--r--libs/gui/SurfaceTexture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp
index e21b65d6a6..36a2af7dcf 100644
--- a/libs/gui/SurfaceTexture.cpp
+++ b/libs/gui/SurfaceTexture.cpp
@@ -478,6 +478,7 @@ status_t SurfaceTexture::syncForReleaseLocked(EGLDisplay dpy) {
}
glFlush();
int fenceFd = eglDupNativeFenceFDANDROID(dpy, sync);
+ eglDestroySyncKHR(dpy, sync);
if (fenceFd == EGL_NO_NATIVE_FENCE_FD_ANDROID) {
ST_LOGE("syncForReleaseLocked: error dup'ing native fence "
"fd: %#x", eglGetError());