coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteTextures() 92/101192/1
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Wed, 30 Nov 2016 11:12:24 +0000 (20:12 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Wed, 30 Nov 2016 11:14:00 +0000 (20:14 +0900)
Change-Id: I875d36228bf7c2aeddb94327f12a65b7aaee2681
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
src/modules/tracepath/coregl_tracepath_gl.c

index 911cf8a..77a1d6a 100644 (file)
@@ -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;