From: Mun, Gwan-gyeong Date: Wed, 30 Nov 2016 11:12:24 +0000 (+0900) Subject: coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteTextures() X-Git-Tag: accepted/tizen/3.0/common/20161203.012216~11^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91455f3f80b8fd29a0454c75ba9b711200532128;p=platform%2Fcore%2Fuifw%2Fcoregl.git coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteTextures() Change-Id: I875d36228bf7c2aeddb94327f12a65b7aaee2681 Signed-off-by: Mun, Gwan-gyeong --- diff --git a/src/modules/tracepath/coregl_tracepath_gl.c b/src/modules/tracepath/coregl_tracepath_gl.c index 911cf8a..77a1d6a 100644 --- a/src/modules/tracepath/coregl_tracepath_gl.c +++ b/src/modules/tracepath/coregl_tracepath_gl.c @@ -2070,6 +2070,7 @@ finish: GET_MY_TSTATE(tstate, get_current_thread_state()); AST(tstate != NULL); + if (!tstate) return; if (tstate->ctx != NULL) { for (int i = 0; i < n; i++) { if (textures[i] == 0) continue;