Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2015-02-23 22:02:24 +0300
committermjentsch <mtthsjntsch@gmail.com>2015-02-23 22:34:24 +0300
commit64e0a7f35fb8d64f31325ae458919a65fac02f9f (patch)
tree4246e2c7ac96a85f185619ff80489ba3de89df02 /tgp-utils.c
parentc9aab9c8eb4ad587070b07f8bfd8f429b32b26c9 (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.c5
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);
+}