[gnumeric] Really plug leak in ODF export. [#747590]



commit d5b29f3999c928a7129e32c2e70792424652a0a6
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Thu Apr 9 21:58:24 2015 -0600

    Really plug leak in ODF export. [#747590]
    
    2015-04-09  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * openoffice-write.c (odf_write_axis_full): really fix leak

 plugins/openoffice/ChangeLog          |    4 ++++
 plugins/openoffice/openoffice-write.c |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 7ee5122..f5fb40d 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,9 @@
 2015-04-09  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+       * openoffice-write.c (odf_write_axis_full): really fix leak
+
+2015-04-09  Andreas J. Guelzow <aguelzow pyrshep ca>
+
        * openoffice-write.c (odf_write_sheet_control_button): fix leak
        (odf_write_axis_full): fix leak
 
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index bf70df9..18332a3 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -7835,6 +7835,7 @@ odf_write_axis_full (GnmOOExport *state,
                        name = odf_get_gog_style_name_from_obj (state, GOG_OBJECT (axis));
                        if (name != NULL)
                                gsf_xml_out_add_cstr (state->xml, CHART "style-name", name);
+                       g_free (name);
                        odf_write_label (state, axis);
                        if (include_cats)
                                odf_write_axis_categories (state, series);


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