diff options
author | mjentsch <mtthsjntsch@gmail.com> | 2015-02-23 22:02:24 +0300 |
---|---|---|
committer | mjentsch <mtthsjntsch@gmail.com> | 2015-02-23 22:34:24 +0300 |
commit | 64e0a7f35fb8d64f31325ae458919a65fac02f9f (patch) | |
tree | 4246e2c7ac96a85f185619ff80489ba3de89df02 /tgp-utils.c | |
parent | c9aab9c8eb4ad587070b07f8bfd8f429b32b26c9 (diff) |
Fix plugin for Centos 6 by removing functions unsupported in old glib versions
Diffstat (limited to 'tgp-utils.c')
-rw-r--r-- | tgp-utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tgp-utils.c b/tgp-utils.c index 8a979ab..e57eb32 100644 --- a/tgp-utils.c +++ b/tgp-utils.c @@ -93,3 +93,8 @@ void tgp_g_queue_free_full (GQueue *queue, GDestroyNotify free_func) { } g_queue_free (queue); } + +void tgp_g_list_free_full (GList *list, GDestroyNotify free_func) { + g_list_foreach (list, (GFunc)free_func, NULL); + g_list_free (list); +} |