diff options
author | Amitesh Singh <amitesh.sh@samsung.com> | 2017-10-30 20:27:53 +0900 |
---|---|---|
committer | Amitesh Singh <amitesh.sh@samsung.com> | 2017-10-30 20:29:42 +0900 |
commit | 176ade58bb2f1420cf8cffa8e4bf94039918538f (patch) | |
tree | d63e75dd2c915116e0073985cf3b47763942eb83 /src | |
parent | cda9532f446b1f465a6bc478e3a7d29a79b3573b (diff) |
elm: call eina_value_flush to deallocate memory
I am not sure if Eina_Value allocates dynamic memory
for basic types but its better practice to call eina_value_flush()
at the end.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/elementary/efl_ui_multibuttonentry.c | 2 | ||||
-rw-r--r-- | src/lib/elementary/efl_ui_progressbar.c | 2 | ||||
-rw-r--r-- | src/lib/elementary/efl_ui_slider.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_multibuttonentry.c b/src/lib/elementary/efl_ui_multibuttonentry.c index 0414bc7567..b8c23e3489 100644 --- a/src/lib/elementary/efl_ui_multibuttonentry.c +++ b/src/lib/elementary/efl_ui_multibuttonentry.c | |||
@@ -278,6 +278,8 @@ _shrink_mode_set(Evas_Object *obj, | |||
278 | efl_event_callback_legacy_call | 278 | efl_event_callback_legacy_call |
279 | (obj, EFL_UI_MULTIBUTTONENTRY_EVENT_EXPAND_STATE_CHANGED, (void *)1); | 279 | (obj, EFL_UI_MULTIBUTTONENTRY_EVENT_EXPAND_STATE_CHANGED, (void *)1); |
280 | } | 280 | } |
281 | |||
282 | eina_value_flush(&val); | ||
281 | } | 283 | } |
282 | else | 284 | else |
283 | { | 285 | { |
diff --git a/src/lib/elementary/efl_ui_progressbar.c b/src/lib/elementary/efl_ui_progressbar.c index fdb8e2e1f4..461869c7d5 100644 --- a/src/lib/elementary/efl_ui_progressbar.c +++ b/src/lib/elementary/efl_ui_progressbar.c | |||
@@ -118,6 +118,8 @@ _units_set(Evas_Object *obj) | |||
118 | eina_strbuf_reset(sd->format_strbuf); | 118 | eina_strbuf_reset(sd->format_strbuf); |
119 | sd->format_cb(sd->format_cb_data, sd->format_strbuf, val); | 119 | sd->format_cb(sd->format_cb_data, sd->format_strbuf, val); |
120 | elm_layout_text_set(obj, "elm.text.status", eina_strbuf_string_get(sd->format_strbuf)); | 120 | elm_layout_text_set(obj, "elm.text.status", eina_strbuf_string_get(sd->format_strbuf)); |
121 | |||
122 | eina_value_flush(&val); | ||
121 | } | 123 | } |
122 | else | 124 | else |
123 | elm_layout_text_set(obj, "elm.text.status", NULL); | 125 | elm_layout_text_set(obj, "elm.text.status", NULL); |
diff --git a/src/lib/elementary/efl_ui_slider.c b/src/lib/elementary/efl_ui_slider.c index a1c8fa9fd4..38d0ff8111 100644 --- a/src/lib/elementary/efl_ui_slider.c +++ b/src/lib/elementary/efl_ui_slider.c | |||
@@ -241,6 +241,8 @@ _units_set(Evas_Object *obj) | |||
241 | elm_layout_signal_emit(obj, "elm,state,units,visible", "elm"); | 241 | elm_layout_signal_emit(obj, "elm,state,units,visible", "elm"); |
242 | sd->units_show = EINA_TRUE; | 242 | sd->units_show = EINA_TRUE; |
243 | } | 243 | } |
244 | |||
245 | eina_value_flush(&val); | ||
244 | } | 246 | } |
245 | else | 247 | else |
246 | { | 248 | { |