summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2016-07-25 17:12:49 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-07-26 10:25:14 +0900
commitd40d469bceee46cda6d8eddd56d13bc119473c20 (patch)
treed37c7f30178474476286c4a447633781e7d91ed2
parentb2b980a7372daaa63f42b53a0311b4449abd7089 (diff)
downloadefl-d40d469bceee46cda6d8eddd56d13bc119473c20.tar.gz
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
-rw-r--r--src/lib/elementary/elm_conform.c4
1 files 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;