aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-16 21:45:12 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-16 21:45:12 +0900
commit063c3529a5c851a46e6b89cc5c2bee08cd3c8ea2 (patch)
tree4ee0f44baae367c5dbec43745a41eebb1a0c2560 /src/lib/elementary/efl_ui_win.c
parentelm_test: Fix invalid API use (EO) (diff)
downloadefl-063c3529a5c851a46e6b89cc5c2bee08cd3c8ea2.tar.gz
win: Avoid magic check failed in ecore with inline win
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 06d3bd501b..492bf8aad0 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -2696,6 +2696,7 @@ _elm_win_on_img_obj_del(void *data,
static void
_elm_win_img_callbacks_del(Evas_Object *obj, Evas_Object *imgobj)
{
+ if (!imgobj) return;
evas_object_event_callback_del_full
(imgobj, EVAS_CALLBACK_DEL, _elm_win_on_img_obj_del, obj);
evas_object_event_callback_del_full
@@ -2771,7 +2772,7 @@ _efl_ui_win_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Win_Data *sd)
sd->pointer.surf = NULL;
#endif
- if (sd->img_obj)
+ if (sd->type == ELM_WIN_INLINED_IMAGE)
{
_elm_win_img_callbacks_del(obj, sd->img_obj);
sd->img_obj = NULL;