summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-10-25 16:30:02 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-10-25 16:30:48 +0900
commit944c4dee1b74b7b5bff30cb99d34d7fa7e1c28f0 (patch)
tree0ebe2454f74a6fc7f5a2a423dae003c73eaec63e
parent8661fe234c7e68b6e69a20f133f8ffd568e12570 (diff)
Efl.Ui.Slider: call format_free_cb() when object destroys
fix mistake done in previous patch 8661fe234c7e68b
-rw-r--r--src/lib/elementary/efl_ui_slider.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_slider.c b/src/lib/elementary/efl_ui_slider.c
index e7a4f4c389..6b543a861e 100644
--- a/src/lib/elementary/efl_ui_slider.c
+++ b/src/lib/elementary/efl_ui_slider.c
@@ -238,7 +238,6 @@ _units_set(Evas_Object *obj)
238 elm_layout_signal_emit(obj, "elm,state,units,hidden", "elm"); 238 elm_layout_signal_emit(obj, "elm,state,units,hidden", "elm");
239 sd->units_show = EINA_FALSE; 239 sd->units_show = EINA_FALSE;
240 } 240 }
241 if (sd->format_free_cb) sd->format_free_cb(sd->format_cb_data);
242 } 241 }
243 else if (sd->units) 242 else if (sd->units)
244 { 243 {
@@ -1203,6 +1202,7 @@ _efl_ui_slider_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Slider_Data *sd)
1203 evas_object_del(sd->popup); 1202 evas_object_del(sd->popup);
1204 evas_object_del(sd->popup2); 1203 evas_object_del(sd->popup2);
1205 1204
1205 if (sd->format_free_cb) sd->format_free_cb(sd->format_cb_data);
1206 efl_ui_format_cb_set(obj, NULL, NULL, NULL); 1206 efl_ui_format_cb_set(obj, NULL, NULL, NULL);
1207 eina_strbuf_free(sd->format_strbuf); 1207 eina_strbuf_free(sd->format_strbuf);
1208 1208