changeset 21642:372711300f57

Fix the namespace_map being leaked.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 26 Nov 2007 06:31:41 +0000
parents ee7638c696f1
children 146766959840
files libpurple/xmlnode.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/xmlnode.c	Mon Nov 26 06:30:57 2007 +0000
+++ b/libpurple/xmlnode.c	Mon Nov 26 06:31:41 2007 +0000
@@ -303,7 +303,7 @@
 
 const char *xmlnode_get_prefix(xmlnode *node)
 {
-	g_return_val_if_fail(node != NULL, NULL);                                   
+	g_return_val_if_fail(node != NULL, NULL);
 	return node->prefix;
 }
 
@@ -346,6 +346,9 @@
 	g_free(node->data);
 	g_free(node->xmlns);
 
+	if(node->namespace_map)
+		g_hash_table_destroy(node->namespace_map);
+
 	PURPLE_DBUS_UNREGISTER_POINTER(node);
 	g_free(node);
 }