[gnumeric] xlsx: plug pivot-related leak



commit 6359c3f9762e83840b2f0ac5a750d35ba40a301d
Author: Morten Welinder <terra gnome org>
Date:   Sat Apr 11 10:07:43 2015 -0400

    xlsx: plug pivot-related leak

 plugins/excel/ChangeLog    |    4 ++++
 plugins/excel/xlsx-write.c |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 422df59..d08f1f3 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-11  Morten Welinder  <terra gnome org>
+
+       * xlsx-write.c (xlsx_write_workbook): Plug pivot leak.
+
 2015-04-10  Morten Welinder  <terra gnome org>
 
        * ms-excel-util.c (xls_collect_hlinks): Rename from
diff --git a/plugins/excel/xlsx-write.c b/plugins/excel/xlsx-write.c
index b00c927..bf88e34 100644
--- a/plugins/excel/xlsx-write.c
+++ b/plugins/excel/xlsx-write.c
@@ -3116,6 +3116,7 @@ xlsx_write_workbook (XLSXWriteState *state, GsfOutfile *root_part)
                        gsf_xml_out_end_element (xml); /* </pivotCache> */
                }
                gsf_xml_out_end_element (xml); /* </pivotCaches> */
+               g_slist_free (cacheRefs);
        }
        gsf_xml_out_start_element (xml, "webPublishing");
        xlsx_add_bool (xml, "allowPng", TRUE);


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