projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a97efc7
)
Fix memory leak
author
Ricardo Mones
<ricardo@mones.org>
Thu, 30 Jan 2014 09:34:19 +0000
(10:34 +0100)
committer
Ricardo Mones
<ricardo@mones.org>
Thu, 30 Jan 2014 09:34:19 +0000
(10:34 +0100)
src/common/utils.c
patch
|
blob
|
history
diff --git
a/src/common/utils.c
b/src/common/utils.c
index fb4ba75f593a69c7f6ec78af323b156652cb6d32..ff476f1556c3963f720307d071fa24457df0f5a9 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-260,10
+260,7
@@
void slist_free_strings_full(GSList *list)
#if GLIB_CHECK_VERSION(2,28,0)
g_slist_free_full(list, (GDestroyNotify)g_free);
#else
- while (list != NULL) {
- g_free(list->data);
- list = list->next;
- }
+ g_slist_foreach(list, (GFunc)g_free, NULL);
g_slist_free(list);
#endif
}