elm widget - stop segv during shutdown when objects become deleted
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 5 Jul 2016 13:55:16 +0000 (22:55 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 5 Jul 2016 13:55:16 +0000 (22:55 +0900)
@fix

src/lib/elementary/elm_widget.c

index 18844f1..d347bdc 100644 (file)
@@ -255,7 +255,7 @@ _on_sub_obj_hide(void *data EINA_UNUSED, const Eo_Event *event)
 static void
 _on_sub_obj_del(void *data, const Eo_Event *event)
 {
-   ELM_WIDGET_DATA_GET(data, sd);
+   ELM_WIDGET_DATA_GET_OR_RETURN(data, sd);
 
    if (_elm_widget_is(event->object))
      {