This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch devs/devilhorns/apos
in repository efl.

View the commit online.

commit 3468ca129ad7e5df286ee9090c684358f8e57674
Author: Carsten Haitzler <[email protected]>
AuthorDate: Sat Dec 24 18:40:00 2022 +0000

    elm config tool - fix string mis-use of stale string ptrs from efreet
    
    if efreet updates its in memory db of themes/icons etc. the ptrs you
    get from it will be invalid. always dup them out if you keep them
    around after going back to main loop control. in this case a tiny
    possible leak in stringshare won't ever matter... sot his fixes it
    
    @fix
---
 src/bin/elementary/config.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/elementary/config.c b/src/bin/elementary/config.c
index 26e723d549..1a661c8b8e 100644
--- a/src/bin/elementary/config.c
+++ b/src/bin/elementary/config.c
@@ -2455,7 +2455,8 @@ _status_config_icons(Evas_Object *win,
         ic = elm_icon_add(li);
         elm_image_file_set(ic, efreet_icon_path_find(th->name.internal, "folder", 48), NULL);
         list_it = elm_list_item_append(li, th->name.name, ic, NULL,
-                                       _icon_theme_sel, th->name.internal);
+                                       _icon_theme_sel,
+                                       eina_stringshare_add(th->name.internal));
 
         if (!strcmp(th->name.internal, "hicolor"))
           def_it = list_it;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to