efl_ui_widget: fix crash issue 26/213026/3 submit/tizen/20190830.034707
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 29 Aug 2019 09:26:16 +0000 (18:26 +0900)
committerkim hosang <hosang12.kim@samsung.com>
Thu, 29 Aug 2019 09:40:22 +0000 (09:40 +0000)
Please refer to https://phab.enlightenment.org/D9762#181662 for details.

@tizen-fix

Change-Id: I473d812553ee9bb7490b4458a02b22703a009918

src/lib/elementary/efl_ui_widget.c

index ce2aed0..d9fd3e7 100644 (file)
@@ -5677,7 +5677,10 @@ _efl_ui_widget_efl_object_constructor(Eo *obj, Elm_Widget_Smart_Data *sd EINA_UN
 
    if (!sd->shared_win_data)
      {
-        if (sd->window && parent_is_widget)
+        //TIZEN_ONLY(20190829): fix crash issue
+        if (!elm_widget_is_legacy(obj))
+        //
+        if (!sd->window && parent_is_widget)
           EINA_SAFETY_ON_NULL_RETURN_VAL(sd->shared_win_data, NULL);
      }