diff libpurple/prefs.c @ 27900:32a707746454

Clean up various file-scoped globals at uninit. These are all from a user's valgrind log in #pidgin a week or so ago. I think only the proxy and pounce are legitimate leaks.
author Paul Aurich <paul@darkrain42.org>
date Thu, 13 Aug 2009 03:26:27 +0000
parents 8290e36a5a73
children 351d07aefb09
line wrap: on
line diff
--- a/libpurple/prefs.c	Thu Aug 13 01:17:04 2009 +0000
+++ b/libpurple/prefs.c	Thu Aug 13 03:26:27 2009 +0000
@@ -1450,6 +1450,8 @@
 		sync_prefs();
 	}
 
+	purple_prefs_disconnect_by_handle(purple_prefs_get_handle());
+
 	prefs_loaded = FALSE;
 	purple_prefs_destroy();
 	g_hash_table_destroy(prefs_hash);