coregl_tracepath_gl: Fix null reference in failure path of tracepath_glRenderbufferSt... 51/101251/1 accepted/tizen/3.0/common/20161203.012216 accepted/tizen/3.0/ivi/20161201.075441 accepted/tizen/3.0/mobile/20161201.075431 accepted/tizen/3.0/tv/20161201.075434 accepted/tizen/3.0/wearable/20161201.075437 accepted/tizen/common/20161201.135922 accepted/tizen/common/20161202.233538 accepted/tizen/ivi/20161202.005454 accepted/tizen/mobile/20161202.005357 accepted/tizen/tv/20161202.005411 accepted/tizen/wearable/20161202.005438 submit/tizen/20161201.053512 submit/tizen_3.0/20161201.053840 submit/tizen_common/20161201.141915
authorHoyub Lee <hoyub.lee@samsung.com>
Wed, 30 Nov 2016 12:44:02 +0000 (21:44 +0900)
committerHoyub Lee <hoyub.lee@samsung.com>
Wed, 30 Nov 2016 12:44:02 +0000 (21:44 +0900)
Change-Id: I50e880589d41b0b32db5724bb833b08999f00316
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
src/modules/tracepath/coregl_tracepath_gl.c

index e972449..eec3bb1 100644 (file)
@@ -4373,6 +4373,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);
@@ -4455,6 +4456,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);