evas: Fixed Null defect issue. 01/272501/2
authorjykeon <jykeon@samsung.com>
Fri, 18 Mar 2022 02:58:15 +0000 (11:58 +0900)
committerjykeon <jykeon@samsung.com>
Fri, 18 Mar 2022 04:34:53 +0000 (13:34 +0900)
Change-Id: I941a6a3e87b4297f5939028c7590b1f9d1f9d777
Signed-off-by: jykeon <jykeon@samsung.com>
src/lib/evas/canvas/evas_object_main.c

index 254e9d1..34152fb 100644 (file)
@@ -138,6 +138,8 @@ evas_object_pointer_grab_del(Evas_Object_Protected_Data *obj,
         (pdata->mouse_grabbed > 0)) &&
        (obj->layer) && (obj->layer->evas))
      {
+    //TIZEN_ONLY(20220318): evas: ++safety, null defect fix
+        if(pdata->evas_pdata->seat)
         pdata->evas_pdata->seat->object.in = eina_list_remove(pdata->evas_pdata->seat->object.in, obj->object);
         if (obj->proxy->is_proxy && obj->proxy->src_events)
           _evas_object_proxy_grab_del(obj, pdata);