Commit 94d7ff9e authored by Morten Welinder's avatar Morten Welinder
Browse files

ods: plug leak

parent 58a49103
......@@ -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
......
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.
......
......@@ -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) -
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment