[gnumeric] Sheet: leak fix, kind of.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Sheet: leak fix, kind of.
- Date: Sun, 14 Dec 2014 18:48:27 +0000 (UTC)
commit 07f1ddc22e92cf35814b2b3985c65ffc6970d4e6
Author: Morten Welinder <terra gnome org>
Date: Sun Dec 14 13:45:58 2014 -0500
Sheet: leak fix, kind of.
ChangeLog | 5 +++++
src/sheet.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c4f538b..6f84081 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-14 Morten Welinder <terra gnome org>
+
+ * src/sheet.c (sheet_colrow_add): Make sure the slot we use is
+ free.
+
2014-12-11 Morten Welinder <terra gnome org>
* src/dependent.c (style_dep_debug_name): Include position too.
diff --git a/src/sheet.c b/src/sheet.c
index 269651d..7572a5b 100644
--- a/src/sheet.c
+++ b/src/sheet.c
@@ -1811,6 +1811,7 @@ sheet_colrow_add (Sheet *sheet, ColRowInfo *cp, gboolean is_cols, int n)
if (*psegment == NULL)
*psegment = g_new0 (ColRowSegment, 1);
+ colrow_free ((*psegment)->info[COLROW_SUB_INDEX (n)]);
(*psegment)->info[COLROW_SUB_INDEX (n)] = cp;
if (cp->outline_level > info->max_outline_level)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]