[gnumeric] ods: plug leak
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ods: plug leak
- Date: Mon, 8 Mar 2021 23:51:06 +0000 (UTC)
commit 94d7ff9e02bf62144cb93f85adcdbb5be63d5144
Author: Morten Welinder <terra gnome org>
Date: Mon Mar 8 18:45:56 2021 -0500
ods: plug leak
NEWS | 1 +
plugins/openoffice/ChangeLog | 4 ++++
plugins/openoffice/openoffice-write.c | 4 +++-
3 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index 90f33462e..e18001724 100644
--- a/NEWS
+++ b/NEWS
@@ -36,6 +36,7 @@ Morten:
* Improve the drawing of filter combos.
* Allow theming of grid color.
* Fix dirty-tracking. [#554]
+ * Plug ods write leak.
--------------------------------------------------------------------------
Gnumeric 1.12.48
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 6f0d4d953..0a2daa8e8 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,7 @@
+2021-03-08 Morten Welinder <terra gnome org>
+
+ * openoffice-write.c (odf_write_line): Plug leak.
+
2021-01-06 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-read.c (odf_apply_ooo_table_config): we can only handle splitmode == 2.
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 7c96abbd8..5d228f2d3 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -3252,8 +3252,10 @@ odf_write_line (GnmOOExport *state, SheetObject *so)
gsf_xml_out_start_element (state->xml, DRAW "line");
g_object_get (G_OBJECT (so), "name", &name, NULL);
- if (name)
+ if (name) {
gsf_xml_out_add_cstr_unchecked (state->xml, DRAW "name", name);
+ g_free (name);
+ }
if (style_name != NULL)
gsf_xml_out_add_cstr (state->xml, DRAW "style-name", style_name);
z = g_slist_length (state->sheet->sheet_objects) -
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]