/pidgin/main: 4a43f6a6326b: Fix again, refs #15310

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Fri Sep 7 08:18:16 EDT 2012


Changeset: 4a43f6a6326b1a10f8f59653170874e23584e72d
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-09-07 14:18 +0200
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/4a43f6a6326b

Description:

Fix again, refs #15310

diffstat:

 libpurple/accountopt.c |   1 +
 libpurple/glibcompat.h |  11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diffs (32 lines):

diff --git a/libpurple/accountopt.c b/libpurple/accountopt.c
--- a/libpurple/accountopt.c
+++ b/libpurple/accountopt.c
@@ -27,6 +27,7 @@
 
 #include "accountopt.h"
 #include "util.h"
+#include "glibcompat.h"
 
 /**
  * An option for an account.
diff --git a/libpurple/glibcompat.h b/libpurple/glibcompat.h
--- a/libpurple/glibcompat.h
+++ b/libpurple/glibcompat.h
@@ -39,6 +39,17 @@ static inline void g_list_free_full(GLis
 	g_list_free(list);
 }
 
+static inline void g_slist_free_full(GSList *list, GDestroyNotify free_func)
+{
+	GSList *it = list;
+	while (it)
+	{
+		free_func(it->data);
+		it = g_slist_next(it);
+	}
+	g_slist_free(list);
+}
+
 #endif /* 2.28.0 */
 
 #endif /* _PIDGINGLIBCOMPAT_H_ */



More information about the Commits mailing list