summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-02-25 11:18:28 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-02-25 11:18:51 +0000
commit9f142be03c4fa03b310db20937f44d552efbdff1 (patch)
treeb599f40b2e35efffd97c8ba7e4739f99c1f58449 /src
parentd0288f4730451a2c6813a7bd1a133e09cd600994 (diff)
elm - efl ui format - remove leak on format info
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/efl_ui_format.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/lib/elementary/efl_ui_format.c b/src/lib/elementary/efl_ui_format.c
index c4dc85353d..1a2af7345e 100644
--- a/src/lib/elementary/efl_ui_format.c
+++ b/src/lib/elementary/efl_ui_format.c
@@ -336,15 +336,10 @@ _efl_ui_format_decimal_places_get(Eo *obj EINA_UNUSED, Efl_Ui_Format_Data *pd)
336EOLIAN static void 336EOLIAN static void
337_efl_ui_format_efl_object_destructor(Eo *obj, Efl_Ui_Format_Data *pd EINA_UNUSED) 337_efl_ui_format_efl_object_destructor(Eo *obj, Efl_Ui_Format_Data *pd EINA_UNUSED)
338{ 338{
339 /* Legacy widgets keep their own formatting data and have their own destructors */ 339 efl_ui_format_func_set(obj, NULL, NULL, NULL);
340 if (!elm_widget_is_legacy(obj)) 340 efl_ui_format_values_set(obj, NULL);
341 { 341 efl_ui_format_string_set(obj, NULL, 0);
342 /* Otherwise, free formatting data */ 342 efl_destructor(efl_super(obj, EFL_UI_FORMAT_MIXIN));
343 efl_ui_format_func_set(obj, NULL, NULL, NULL);
344 efl_ui_format_values_set(obj, NULL);
345 efl_ui_format_string_set(obj, NULL, 0);
346 }
347 efl_destructor(efl_super(obj, EFL_UI_FORMAT_MIXIN));
348} 343}
349 344
350#include "efl_ui_format.eo.c" 345#include "efl_ui_format.eo.c"