[EXTN_GL] fix svace issue 76/123376/3
authorsunghyun kim <scholb.kim@samsung.com>
Mon, 20 Mar 2017 02:01:38 +0000 (11:01 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 6 Apr 2017 00:22:11 +0000 (17:22 -0700)
if bdata is null, iconify function need to return.
and return type also need to change void->bool.

Change-Id: Icccf07d0ceb30f8ef570affaaca6602237731420

src/modules/ecore_evas/engines/extn/ecore_evas_extn.c

index 6bdaf5d93598c05b3dddfd5fc697c9af74ebebf5..3598e521868e34d429050999d0457335a3f0a909 100644 (file)
@@ -1086,7 +1086,7 @@ _ecore_evas_extn_cb_hide(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_
 }
 
 #ifdef BUILD_TIZEN_REMOTE_SURFACE
-static void
+static Eina_Bool
 _ecore_evas_plug_cb_window_iconify_change(void *data, int type EINA_UNUSED, void *event)
 {
    Extn *extn;
@@ -1102,7 +1102,7 @@ _ecore_evas_plug_cb_window_iconify_change(void *data, int type EINA_UNUSED, void
 
    ee2 = data;
    bdata = ee2->engine.extn.data;
-   if(!bdata) ERR("[EXTN_GL] bdata is null");
+   if(!bdata) return ECORE_CALLBACK_PASS_ON;
 
    extn = bdata->data;
 
@@ -1142,7 +1142,7 @@ _ecore_evas_plug_cb_window_iconify_change(void *data, int type EINA_UNUSED, void
   return ECORE_CALLBACK_PASS_ON;
 }
 
-static void
+static Eina_Bool
 _ecore_evas_plug_cb_window_show(void *data, int type EINA_UNUSED, void *event)
 {
    Extn *extn;
@@ -1151,7 +1151,7 @@ _ecore_evas_plug_cb_window_show(void *data, int type EINA_UNUSED, void *event)
 
    ee = data;
    bdata = ee->engine.extn.data;
-   if(!bdata) ERR("[EXTN_GL] bdata is null");
+   if(!bdata) return ECORE_CALLBACK_PASS_ON;
    extn = bdata->data;
    if(extn->extn_type_client == EXTN_TYPE_SHM) return ECORE_CALLBACK_PASS_ON;