evas-gl-core: fix dereferenced bug 73/89273/3
authorsunghyun kim <scholb.kim@samsung.com>
Fri, 23 Sep 2016 02:30:39 +0000 (11:30 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 23 Sep 2016 09:19:57 +0000 (02:19 -0700)
Change-Id: I18ce3d5b3cb928b174b00b3a36be6c2286c4503a

src/modules/evas/engines/gl_common/evas_gl_core.c

index 91c6f61..4bf0159 100644 (file)
@@ -143,7 +143,7 @@ _internal_resource_make_current(void *eng_data, EVGL_Surface *sfc, EVGL_Context
           {
              // Do Nothing
           }
-        else if (ctx->pixmap_image_supported) // Pixmap surface
+        else if (ctx && (ctx->pixmap_image_supported)) // Pixmap surface
           {
              if (!sfc->indirect_sfc)
                {