From d40d469bceee46cda6d8eddd56d13bc119473c20 Mon Sep 17 00:00:00 2001 From: Sungtaek Hong Date: Mon, 25 Jul 2016 17:12:49 +0900 Subject: [PATCH] elm_conform: set data pointer to obj from NULL. Summary: - In the callback for ELM_PLUG_EVENT_IMAGE_DELETED, it tries to get elm_conform's data from NULL. @fix Reviewers: Hermet, woohyun, cedric, jpeg Reviewed By: jpeg Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4177 --- src/lib/elementary/elm_conform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_conform.c b/src/lib/elementary/elm_conform.c index a2d487f749..29b8b2594e 100644 --- a/src/lib/elementary/elm_conform.c +++ b/src/lib/elementary/elm_conform.c @@ -409,7 +409,7 @@ _create_portrait_indicator(Evas_Object *obj) elm_widget_sub_object_add(obj, port_indicator); eo_event_callback_add - (port_indicator, ELM_PLUG_EVENT_IMAGE_DELETED, _port_indicator_disconnected, NULL); + (port_indicator, ELM_PLUG_EVENT_IMAGE_DELETED, _port_indicator_disconnected, obj); evas_object_size_hint_min_set(port_indicator, -1, 0); evas_object_size_hint_max_set(port_indicator, -1, 0); @@ -451,7 +451,7 @@ _create_landscape_indicator(Evas_Object *obj) elm_widget_sub_object_add(obj, land_indicator); eo_event_callback_add - (land_indicator, ELM_PLUG_EVENT_IMAGE_DELETED, _land_indicator_disconnected, NULL); + (land_indicator, ELM_PLUG_EVENT_IMAGE_DELETED, _land_indicator_disconnected, obj); evas_object_size_hint_min_set(land_indicator, -1, 0); evas_object_size_hint_max_set(land_indicator, -1, 0); return land_indicator;