changeset 32469:d5363fbfa031

Our minimum version of GLib does not have a g_list_free_full().
author andrew.victor@mxit.com
date Mon, 09 Jan 2012 11:30:40 +0000
parents 9e72389456f6
children 49fc653d72c6
files libpurple/protocols/jabber/caps.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Mon Jan 02 09:13:39 2012 +0000
+++ b/libpurple/protocols/jabber/caps.c	Mon Jan 09 11:30:40 2012 +0000
@@ -888,7 +888,8 @@
 					                                   field->values);
 				}
 			} else {
-				g_list_free_full(field->values, g_free);
+				g_list_foreach(field->values, (GFunc) g_free, NULL);
+				g_list_free(field->values);
 			}
 
 			g_free(field->var);