coregl_tracepath_gl: Fix null reference in failure path tracepath_glGenRenderbuffers() 18/101218/1
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Wed, 30 Nov 2016 11:55:47 +0000 (20:55 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Wed, 30 Nov 2016 11:55:47 +0000 (20:55 +0900)
Change-Id: I592d033452d58e4df723a0f7996a9abeed9b00c4
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
src/modules/tracepath/coregl_tracepath_gl.c

index 69ae3dd..42608fe 100644 (file)
@@ -2452,6 +2452,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;