This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enventor.
View the commit online.
commit 311c2278bd8f1e8fe80c293118b9e15a1270f134
Author: Thanatermesis <[email protected]>
AuthorDate: Mon Feb 23 15:59:13 2026 -0500
fix: Fix memory leaks in group name update and transition setup
I have identified a memory leak in stats_edc_group_update where existing stringshares were not being released before being overwritten, and a potential issue in
view_invert_btn_cb where the transition data could leak if the transition failed to start.
---
src/bin/statusbar.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/bin/statusbar.c b/src/bin/statusbar.c
index 5ac42a6..2e50770 100644
--- a/src/bin/statusbar.c
+++ b/src/bin/statusbar.c
@@ -96,6 +96,11 @@ view_invert_btn_cb(void *data EINA_UNUSED, Evas_Object *obj,
id->diff_h = w - h;
Elm_Transit *transit = elm_transit_add();
+ if (!transit)
+ {
+ free(id);
+ return;
+ }
elm_transit_object_add(transit, obj);
elm_transit_effect_add(transit, view_invert_transit_op, id,
view_invert_transit_end);
@@ -297,7 +302,7 @@ stats_edc_group_update(Eina_Stringshare *group_name)
EINA_SAFETY_ON_NULL_RETURN(sd);
elm_object_part_text_set(sd->layout, "elm.text.group_name", group_name);
- sd->group_name = eina_stringshare_add(group_name);
+ eina_stringshare_replace(&sd->group_name, group_name);
}
Evas_Object *
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.