Merge release-2.x.y branch into master. No overlapping files.

Tue, 04 Nov 2014 22:18:30 -0800

author
Mark Doliner <mark@kingant.net>
date
Tue, 04 Nov 2014 22:18:30 -0800
changeset 36226
c84a673e6105
parent 36225
c9cc21192acf (current diff)
parent 36224
5fdaf1c7c04f (diff)
child 36229
c6b248d98ba9

Merge release-2.x.y branch into master. No overlapping files.

ChangeLog file | annotate | diff | comparison | revisions
libpurple/pluginpref.c file | annotate | diff | comparison | revisions
--- a/ChangeLog	Tue Nov 04 22:18:02 2014 -0800
+++ b/ChangeLog	Tue Nov 04 22:18:30 2014 -0800
@@ -82,7 +82,7 @@
 
 	General:
 	* Fix handling of Self-Signed SSL/TLS Certificates when using the NSS
-          plugin (#16412)
+	  plugin (#16412)
 
 version 2.10.10 (10/22/14):
 	General:
--- a/libpurple/pluginpref.c	Tue Nov 04 22:18:02 2014 -0800
+++ b/libpurple/pluginpref.c	Tue Nov 04 22:18:30 2014 -0800
@@ -142,10 +142,19 @@
 void
 purple_plugin_pref_destroy(PurplePluginPref *pref)
 {
+	GList *tmp;
 	g_return_if_fail(pref != NULL);
 
 	g_free(pref->name);
 	g_free(pref->label);
+	tmp = pref->choices;
+	while(tmp) {
+		g_free(tmp->data);
+		/* Remove the string, and the data entries */
+		tmp = g_list_delete_link(tmp, tmp);
+		tmp = g_list_delete_link(tmp, tmp);
+	}
+
 	g_list_free(pref->choices);
 	g_free(pref);
 }
@@ -253,7 +262,7 @@
 	g_return_if_fail(label != NULL);
 	g_return_if_fail(choice || purple_prefs_get_pref_type(pref->name) == PURPLE_PREF_INT);
 
-	pref->choices = g_list_append(pref->choices, (gpointer)label);
+	pref->choices = g_list_append(pref->choices, g_strdup(label));
 	pref->choices = g_list_append(pref->choices, choice);
 }
 

mercurial