[lasem] <mathml::math> Duplicate new style object in set_default_style().



commit 51bd7650920c494c2da8542acd0d8d786b4befab
Author: Jorn Baayen <jorn baayen gmail com>
Date:   Sun Oct 4 10:09:37 2009 +0200

    <mathml::math> Duplicate new style object in set_default_style().
    
    Signed-off-by: Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>

 src/lsmmathmlmathelement.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lsmmathmlmathelement.c b/src/lsmmathmlmathelement.c
index e494c65..6bceccf 100644
--- a/src/lsmmathmlmathelement.c
+++ b/src/lsmmathmlmathelement.c
@@ -73,7 +73,7 @@ lsm_mathml_math_element_set_default_style (LsmMathmlMathElement *math_element, L
 	}
 
 	lsm_mathml_style_free (math_element->default_style);
-	math_element->default_style = style;
+	math_element->default_style = lsm_mathml_style_duplicate (style);
 
 	lsm_dom_node_changed (LSM_DOM_NODE (math_element));
 }



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