elm_conform: set data pointer to obj from NULL.
authorSungtaek Hong <sth253.hong@samsung.com>
Mon, 25 Jul 2016 08:12:49 +0000 (17:12 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 26 Jul 2016 01:25:14 +0000 (10:25 +0900)
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

index a2d487f..29b8b25 100644 (file)
@@ -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;