loudmouth/lm-parser.c
changeset 84 7ae7b690aa89
parent 57 6b168a8917f7
child 99 81e9d035de02
--- a/loudmouth/lm-parser.c	Thu Mar 18 00:06:01 2004 +0000
+++ b/loudmouth/lm-parser.c	Mon Aug 02 23:57:41 2004 +0000
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2003 Mikael Hallendal <micke@imendio.com>
+ * Copyright (C) 2003 Imendio HB
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License as
@@ -159,13 +159,16 @@
 		}
 
 		lm_message_unref (m);
- 		lm_message_node_unref (parser->cur_root);
+		lm_message_node_unref (parser->cur_root);
 		
+			
 		parser->cur_node = parser->cur_root = NULL;
 	} else {
 		LmMessageNode *tmp_node;
 		tmp_node = parser->cur_node;
 		parser->cur_node = parser->cur_node->parent;
+
+		lm_message_node_unref (tmp_node);
 	}
 }
 
@@ -214,7 +217,7 @@
 		return NULL;
 	}
 	
-	parser->m_parser                = g_new0 (GMarkupParser, 1);
+	parser->m_parser = g_new0 (GMarkupParser, 1);
 	if (!parser->m_parser) {
 		g_free (parser);
 		return NULL;