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
This commit is contained in:
Sungtaek Hong 2016-07-25 17:12:49 +09:00 committed by Jean-Philippe Andre
parent b2b980a737
commit d40d469bce
1 changed files with 2 additions and 2 deletions

View 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;