Merge "Destroying sync fence to prevent leaks." into klp-dev
diff --git a/suite/cts/deviceTests/opengl/jni/primitive/contextswitch/ContextSwitchRenderer.cpp b/suite/cts/deviceTests/opengl/jni/primitive/contextswitch/ContextSwitchRenderer.cpp
index 171f8fe..7fd4093 100644
--- a/suite/cts/deviceTests/opengl/jni/primitive/contextswitch/ContextSwitchRenderer.cpp
+++ b/suite/cts/deviceTests/opengl/jni/primitive/contextswitch/ContextSwitchRenderer.cpp
@@ -216,6 +216,8 @@
         }
     }
 
+    eglDestroySyncKHR(mEglDisplay, fence);
+
     // Switch back to the main context.
     eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext);
     if (mOffscreen) {