[goffice] Don't free a GsfXMLInDoc twice.



commit 1288bd8706a698061439c4d75d0404fd4984df14
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Jun 21 08:47:12 2015 +0200

    Don't free a GsfXMLInDoc twice.

 ChangeLog                          |    5 +++++
 goffice/graph/gog-axis-color-map.c |    4 +---
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c625a2a..3f4de45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2015-06-21  Jean Brefort  <jean brefort normalesup org>
 
+       * goffice/graph/gog-axis-color-map.c (color_map_load_from_uri): do not
+       free the GsfXMLInDoc* twice.
+
+2015-06-21  Jean Brefort  <jean brefort normalesup org>
+
        * plugins/plot_surface/xl-surface.c (get_y_vector): skip invalid series.
        [#751257]
 
diff --git a/goffice/graph/gog-axis-color-map.c b/goffice/graph/gog-axis-color-map.c
index 2837fc9..3003b44 100644
--- a/goffice/graph/gog-axis-color-map.c
+++ b/goffice/graph/gog-axis-color-map.c
@@ -918,10 +918,8 @@ color_map_load_from_uri (char const *uri)
        state.langs = g_get_language_names ();
        state.name_lang_score = G_MAXINT;
        state.color_stops = NULL;
-       if (!xml) {
+       if (!xml)
                xml = gsf_xml_in_doc_new (color_map_dtd, NULL);
-               go_xml_in_doc_dispose_on_exit (&xml);
-       }
        if (!gsf_xml_in_doc_parse (xml, input, &state))
                g_warning ("[GogAxisColorMap]: Could not parse %s", uri);
        if (state.map != NULL) {


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