[lasem] [DOM] Memory leak fix.



commit 53e0fa1d6d9df15619dc390575e255e91c7f32ad
Author: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
Date:   Sun May 3 11:10:41 2009 +0200

    [DOM] Memory leak fix.
---
 src/lsmdomattributes.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/lsmdomattributes.c b/src/lsmdomattributes.c
index 2f5eb97..a871c1d 100644
--- a/src/lsmdomattributes.c
+++ b/src/lsmdomattributes.c
@@ -414,6 +414,7 @@ lsm_dom_string_attribute_parse (LsmDomStringAttribute *attribute,
 	} else {
 		g_free (*style_value);
 		*style_value = g_strdup (string);
+		g_free (attribute->value);
 		attribute->value = g_strdup (string);
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]