diff libpurple/pounce.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 a6e3cb32cdd2
children 4076f53cdd84 73b005a20d06
line wrap: on
line diff
--- a/libpurple/pounce.c	Thu Aug 13 01:17:04 2009 +0000
+++ b/libpurple/pounce.c	Thu Aug 13 03:26:27 2009 +0000
@@ -1157,4 +1157,7 @@
 	}
 
 	purple_signals_disconnect_by_handle(purple_pounces_get_handle());
+
+	g_hash_table_destroy(pounce_handlers);
+	pounce_handlers = NULL;
 }