[geany/geany-plugins] 8309a0: gproject: Don't use g_slist_free_full()
Jiří Techet
git-noreply at xxxxx
Thu Dec 18 10:29:54 UTC 2014
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Thu, 18 Dec 2014 10:29:54 UTC
Commit: 8309a0e8880e2c040522dee81aec7815e8bb9366
https://github.com/geany/geany-plugins/commit/8309a0e8880e2c040522dee81aec7815e8bb9366
Log Message:
-----------
gproject: Don't use g_slist_free_full()
To support older versions of glib
Modified Paths:
--------------
gproject/src/gproject-project.c
Modified: gproject/src/gproject-project.c
6 lines changed, 5 insertions(+), 1 deletions(-)
===================================================================
@@ -51,7 +51,11 @@ static GSList *s_idle_remove_funcs;
static void clear_idle_queue(GSList **queue)
{
- g_slist_free_full(*queue, g_free);
+ GSList *elem;
+
+ foreach_slist(elem, *queue)
+ g_free(elem->data);
+ g_slist_free(*queue);
*queue = NULL;
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list