[gnumeric] ods: plug leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ods: plug leak.
- Date: Mon, 22 Apr 2013 14:31:27 +0000 (UTC)
commit a99c0fc0eb1712179169452bd8e12c6437ed2627
Author: Morten Welinder <terra gnome org>
Date: Mon Apr 22 10:31:12 2013 -0400
ods: plug leak.
plugins/openoffice/ChangeLog | 4 ++++
plugins/openoffice/openoffice-read.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 3c7212f..2aa3e0a 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-22 Morten Welinder <terra gnome org>
+
+ * openoffice-read.c (odf_text_span_end): Plug leak.
+
2013-04-22 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-read.c (oo_chart_title_end): fix typo
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 3e1a059..ed69402 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -1678,7 +1678,8 @@ odf_text_span_end (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
end = ((ptr->gstr) ? ptr->gstr->len : 0);
ssi = ptr->span_style_stack->data;
- ptr->span_style_stack = ptr->span_style_stack->next;
+ ptr->span_style_stack = g_slist_delete_link (ptr->span_style_stack,
+ ptr->span_style_stack);
if (ssi != NULL) {
if (ssi->style_name != NULL && end > 0 && end > ssi->start) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]