This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository presentator.
View the commit online.
commit d6759ca3eaf3f1c18cbeb51d288ea7c324a530df
Author: Marcel Hollerbach <[email protected]>
AuthorDate: Sun Jul 10 09:49:49 2022 +0200
fix memory issue
we assigned NULL to a entry that was preexisting
---
src/e_mod_main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index 40661d6..68567bb 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -32,7 +32,6 @@ _timed_del(void *data)
{
Entry *e = data;
_del_key(e->name);
- e->timer = NULL;
return 0;
}
@@ -104,16 +103,17 @@ _del_key(const char *name)
//deref the entry
e->ref --;
+ if (e->timer) ecore_timer_del(e->timer);
+
if (e->ref == 1)
{
- if (e->timer) ecore_timer_del(e->timer);
e->timer = ecore_timer_add(0.5, _timed_del, e);
}
//free if null
if (e->ref == 0)
{
-
+ e->timer = NULL;
//if ref is 0 nuke out that entry
eina_hash_del_by_key(string_hash, name);
//we need to update the notify visuals depending on the state of the box
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.