summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-03-02 13:20:00 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-03-02 13:20:00 +0000
commit91f07de8905584fed2d2cb7fd9eaf7ea04da9dd5 (patch)
tree2ccc8c9ed19eb7872cf2b8f46ea2e367b59bc5f2 /src/lib
parent81f962da7512703e3f6b0e0d1757da0a1f839be1 (diff)
efl ui format - now dont leak and dont double free
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/efl_ui_format.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_format.c b/src/lib/elementary/efl_ui_format.c
index eef6c4e2df..c24111466c 100644
--- a/src/lib/elementary/efl_ui_format.c
+++ b/src/lib/elementary/efl_ui_format.c
@@ -340,8 +340,14 @@ _efl_ui_format_efl_object_destructor(Eo *obj, Efl_Ui_Format_Data *pd EINA_UNUSED
340 { 340 {
341 efl_ui_format_func_set(obj, NULL, NULL, NULL); 341 efl_ui_format_func_set(obj, NULL, NULL, NULL);
342 } 342 }
343 efl_ui_format_values_set(obj, NULL); 343 if (pd->format_values)
344 efl_ui_format_string_set(obj, NULL, 0); 344 {
345 efl_ui_format_values_set(obj, NULL);
346 }
347 if (pd->format_string_type)
348 {
349 efl_ui_format_string_set(obj, NULL, 0);
350 }
345 efl_destructor(efl_super(obj, EFL_UI_FORMAT_MIXIN)); 351 efl_destructor(efl_super(obj, EFL_UI_FORMAT_MIXIN));
346} 352}
347 353