coregl_tracepath_gl: Fix null reference in failure path of tracepath_glDeleteRenderbu... 87/101187/1
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Wed, 30 Nov 2016 11:05:33 +0000 (20:05 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Wed, 30 Nov 2016 11:05:33 +0000 (20:05 +0900)
Change-Id: Ice5a724ec5411caad7c165598e67032b0a3c9e64
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
src/modules/tracepath/coregl_tracepath_gl.c

index 5869e45..911cf8a 100644 (file)
@@ -2021,6 +2021,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 (renderbuffers[i] == 0) continue;