[libgnomecanvas] Getting GnomeCanvasLine's points property leaks. Patch from Torsten Shoenfeld. Closes bug #550045.
- From: Kjartan Maraas <kmaraas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgnomecanvas] Getting GnomeCanvasLine's points property leaks. Patch from Torsten Shoenfeld. Closes bug #550045.
- Date: Thu, 1 Oct 2009 09:18:29 +0000 (UTC)
commit b84618dfed16e30777bda750021dbe4ad5d3685c
Author: Kjartan Maraas <kmaraas gnome org>
Date: Thu Oct 1 11:18:20 2009 +0200
Getting GnomeCanvasLine's points property leaks. Patch from Torsten Shoenfeld. Closes bug #550045.
libgnomecanvas/gnome-canvas-line.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgnomecanvas/gnome-canvas-line.c b/libgnomecanvas/gnome-canvas-line.c
index 527bf6e..b35a418 100644
--- a/libgnomecanvas/gnome-canvas-line.c
+++ b/libgnomecanvas/gnome-canvas-line.c
@@ -879,7 +879,8 @@ gnome_canvas_line_get_property (GObject *object,
switch (param_id) {
case PROP_POINTS:
- g_value_set_boxed (value, get_points (line));
+ /* get_points returns a copy */
+ g_value_set_boxed_take_ownership (value, get_points (line));
break;
case PROP_FILL_COLOR:
@@ -964,7 +965,7 @@ gnome_canvas_line_get_property (GObject *object,
static void
gnome_canvas_line_render (GnomeCanvasItem *item,
- GnomeCanvasBuf *buf)
+ GnomeCanvasBuf *buf)
{
GnomeCanvasLine *line;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]