[libchamplain: 7/10] Do not unref polygons
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain: 7/10] Do not unref polygons
- Date: Mon, 10 May 2010 21:55:47 +0000 (UTC)
commit 2e9d4739fdc7bb51481394324dd6f7c4a70d61ef
Author: JiÅ?Ã Techet <techet gmail com>
Date: Mon May 10 22:03:37 2010 +0200
Do not unref polygons
...they are owned by ChamplainView now.
Signed-off-by: JiÅ?Ã Techet <techet gmail com>
demos/polygons.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/demos/polygons.c b/demos/polygons.c
index 4726e58..00e3bf6 100644
--- a/demos/polygons.c
+++ b/demos/polygons.c
@@ -121,7 +121,6 @@ main (int argc,
champlain_polygon_append_point (polygon, 45.4151, -73.1218);
champlain_polygon_set_stroke_width (polygon, 5.0);
champlain_view_add_polygon (CHAMPLAIN_VIEW (actor), polygon);
- g_object_unref (G_OBJECT (polygon));
/* draw a polygon */
polygon = champlain_polygon_new ();
@@ -133,7 +132,6 @@ main (int argc,
g_object_set (polygon, "closed-path", TRUE, NULL);
g_object_set (polygon, "fill", TRUE, NULL);
champlain_view_add_polygon (CHAMPLAIN_VIEW (actor), polygon);
- g_object_unref (G_OBJECT (polygon));
/* Finish initialising the map view */
g_object_set (G_OBJECT (actor), "zoom-level", 8,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]