diff libpurple/protocols/qq/qq.c @ 24372:97eddfe30726

This preferences isn't used anywhere, and when we call get_string_list here I think we lose the reference to the original list, which is a memleak
author Mark Doliner <mark@kingant.net>
date Fri, 14 Nov 2008 18:38:56 +0000
parents 7c0a56c5fea0
children ad685dadbaca
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq.c	Fri Nov 14 18:33:19 2008 +0000
+++ b/libpurple/protocols/qq/qq.c	Fri Nov 14 18:38:56 2008 +0000
@@ -1149,8 +1149,7 @@
 
 	server_list = server_list_build('A');
 
-	purple_prefs_add_string_list("/plugins/prpl/qq/serverlist", server_list);
-	server_list = purple_prefs_get_string_list("/plugins/prpl/qq/serverlist");
+	purple_prefs_remove("/plugins/prpl/qq/serverlist");
 
 	server_kv_list = NULL;
 	kvp = g_new0(PurpleKeyValuePair, 1);