[evas_gl] add null check before eina_mempool_malloc 85/123385/2
authorJoogab Yun <joogab.yun@samsung.com>
Wed, 5 Apr 2017 09:50:51 +0000 (18:50 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 6 Apr 2017 00:38:25 +0000 (17:38 -0700)
          WGID : 167385

Change-Id: If6ee39fcaed610234f621cd00cd59bb9d3e41b10

src/modules/evas/engines/gl_generic/evas_engine.c

index 5eed51a..69729f8 100644 (file)
@@ -1747,6 +1747,8 @@ get_pixels_evgl_thread_cmd(Evas_Object_Image_Pixels_Get_Cb cb, void *get_pixels_
    Evas_GL_Thread_Command_get_pixels *thread_param;
    thread_param = eina_mempool_malloc(_mp_command,
                                       sizeof(Evas_GL_Thread_Command_get_pixels));
+   if (!thread_param) return;
+
    thread_param->cb = cb;
    thread_param->get_pixels_data = get_pixels_data;
    thread_param->o = o;