From a54160a3fddb4e3ef8609a9eb7d12a5ee6749ac6 Mon Sep 17 00:00:00 2001 From: Hoyub Lee Date: Wed, 30 Nov 2016 20:30:58 +0900 Subject: [PATCH] coregl_tracepath_gl: Fix null reference in failure path tracepath_glEGLImageTargetRenderbufferStorageOES Change-Id: If512bacde333daa2c85459ac9e8de8a4f3bf841a Signed-off-by: Hoyub Lee --- src/modules/tracepath/coregl_tracepath_gl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/tracepath/coregl_tracepath_gl.c b/src/modules/tracepath/coregl_tracepath_gl.c index fe77b38..a442c57 100644 --- a/src/modules/tracepath/coregl_tracepath_gl.c +++ b/src/modules/tracepath/coregl_tracepath_gl.c @@ -5603,6 +5603,7 @@ finish: GET_MY_TSTATE(tstate, get_current_thread_state()); AST(tstate != NULL); + if (!tstate) return; if (tstate->ctx != NULL) { int objidx = _COREGL_INT_INIT_VALUE; _orig_tracepath_glGetIntegerv(GL_RENDERBUFFER_BINDING, &objidx); -- 2.7.4