im.pidgin.pidgin: cf65b89d71f0a142ac21a919ced9f163b4bc7251

datallah at pidgin.im datallah at pidgin.im
Mon Nov 26 01:35:49 EST 2007


-----------------------------------------------------------------
Revision: cf65b89d71f0a142ac21a919ced9f163b4bc7251
Ancestor: 83367f8f60af4ebb6636d5aa3e3eed63fc7e49b8
Author: datallah at pidgin.im
Date: 2007-11-26T06:31:41
Branch: im.pidgin.pidgin

Modified files:
        libpurple/xmlnode.c

ChangeLog: 

Fix the namespace_map being leaked.

-------------- next part --------------
============================================================
--- libpurple/xmlnode.c	70ea5575d11fa21ed040d3c7bdbcb71b2f32d17a
+++ libpurple/xmlnode.c	c75c4e9728a2d97dffe3409ef58302d1df1e6ea5
@@ -303,7 +303,7 @@ const char *xmlnode_get_prefix(xmlnode *
 
 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 @@ xmlnode_free(xmlnode *node)
 	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);
 }


More information about the Commits mailing list