[gnumeric] Paste: plug leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Paste: plug leak.
- Date: Sat, 17 Nov 2018 00:05:10 +0000 (UTC)
commit 415ef7f8595bf1549c1b4843da1306bf5e78d0af
Author: Morten Welinder <terra gnome org>
Date: Fri Nov 16 19:04:47 2018 -0500
Paste: plug leak.
ChangeLog | 4 ++++
NEWS | 1 +
src/commands.c | 1 +
3 files changed, 6 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index 103274276..6cd26085f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-11-16 Morten Welinder <terra gnome org>
+
+ * src/commands.c (get_new_objects): unref the unaffected objects.
+
2018-10-23 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/gui-util.c (gnm_get_link_color): make conditional on definition
diff --git a/NEWS b/NEWS
index 4b4f4289b..527693085 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Morten:
* Fix applix locale problem. [#362]
* Fix applix encoding and escape problems. [#363]
* New LAMBERTW function.
+ * Plug sheet object leak with paste.
--------------------------------------------------------------------------
Gnumeric 1.12.43
diff --git a/src/commands.c b/src/commands.c
index bd7efde85..216ccb3ec 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -2962,6 +2962,7 @@ get_new_objects (Sheet *sheet, GSList *old)
last->next = next;
else
objs = next;
+ g_object_unref (p->data);
g_slist_free_1 (p);
p = next;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]