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)
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 a2d487f..29b8b25 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)
409 409
410 elm_widget_sub_object_add(obj, port_indicator); 410 elm_widget_sub_object_add(obj, port_indicator);
411 eo_event_callback_add 411 eo_event_callback_add
412 (port_indicator, ELM_PLUG_EVENT_IMAGE_DELETED, _port_indicator_disconnected, NULL); 412 (port_indicator, ELM_PLUG_EVENT_IMAGE_DELETED, _port_indicator_disconnected, obj);
413 evas_object_size_hint_min_set(port_indicator, -1, 0); 413 evas_object_size_hint_min_set(port_indicator, -1, 0);
414 evas_object_size_hint_max_set(port_indicator, -1, 0); 414 evas_object_size_hint_max_set(port_indicator, -1, 0);
415 415
@@ -451,7 +451,7 @@ _create_landscape_indicator(Evas_Object *obj)
451 451
452 elm_widget_sub_object_add(obj, land_indicator); 452 elm_widget_sub_object_add(obj, land_indicator);
453 eo_event_callback_add 453 eo_event_callback_add
454 (land_indicator, ELM_PLUG_EVENT_IMAGE_DELETED, _land_indicator_disconnected, NULL); 454 (land_indicator, ELM_PLUG_EVENT_IMAGE_DELETED, _land_indicator_disconnected, obj);
455 evas_object_size_hint_min_set(land_indicator, -1, 0); 455 evas_object_size_hint_min_set(land_indicator, -1, 0);
456 evas_object_size_hint_max_set(land_indicator, -1, 0); 456 evas_object_size_hint_max_set(land_indicator, -1, 0);
457 return land_indicator; 457 return land_indicator;