[libchamplain/libchamplain-0-4] Fix segfault when polygon has been delete before redraw
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] Fix segfault when polygon has been delete before redraw
- Date: Tue, 5 Jan 2010 00:38:15 +0000 (UTC)
commit 15d0144ab6dfc5dab94b7dae7b7be5df4815908b
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Tue Dec 29 16:18:37 2009 -0500
Fix segfault when polygon has been delete before redraw
champlain/champlain-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 7f3f2ae..c200549 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -467,7 +467,7 @@ notify_polygon_cb (ChamplainPolygon *polygon,
ctx = g_new0 (PolygonRedrawContext, 1);
ctx->view = view;
ctx->polygon = polygon;
- g_object_add_weak_pointer (polygon, &ctx->polygon);
+ g_object_add_weak_pointer (G_OBJECT (polygon), (gpointer *) &ctx->polygon);
view->priv->polygon_redraw_id = g_idle_add_full (G_PRIORITY_DEFAULT_IDLE,
(GSourceFunc) redraw_polygon_on_idle, ctx, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]