[gnumeric] ods export: plug leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ods export: plug leak.
- Date: Sun, 12 Jul 2020 16:25:24 +0000 (UTC)
commit b78a4e7edb16a9e68c1bfff12c380f75188afacd
Author: Morten Welinder <terra gnome org>
Date: Sun Jul 12 12:24:38 2020 -0400
ods export: plug leak.
plugins/openoffice/ChangeLog | 4 ++++
plugins/openoffice/openoffice-write.c | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 06b03575e..eb8e3f4c4 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,7 @@
+2020-07-12 Morten Welinder <terra gnome org>
+
+ * openoffice-write.c (odf_write_frame_size): Plug leak.
+
2020-07-05 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-read.c (openoffice_file_open): Make all read sheets the same size
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index a2a12c0b2..a9d55b2a8 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -2857,7 +2857,7 @@ odf_write_frame_size (GnmOOExport *state, SheetObject *so)
GnmParsePos pp;
char *formula;
Sheet *sheet;
- char const *name = NULL;
+ char *name = NULL;
sheet_object_anchor_to_offset_pts (anchor, state->sheet, res_pts);
@@ -2899,8 +2899,10 @@ odf_write_frame_size (GnmOOExport *state, SheetObject *so)
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);
+ }
sheet = sheet_object_get_sheet (so);
if (sheet) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]