GNOME Bugzilla – Bug 610168
demos/polygon: segfault at start-up
Last modified: 2010-05-10 23:00:56 UTC
Created attachment 153937 [details] [review] proposed fix The polygon demo segfauls at start-up. All other demos work fine. Removing g_object_unref (G_OBJECT (polygon)); for each polygon fixes the segfault, but that's probably not the right fix.
+ Trace 220598
Actually I think this _is_ the correct solution. From what I have seen, champlain_view_add_polygon() was changed to call _ref_sink() so it takes ownership of the polygon: view->priv->polygons = g_list_append (view->priv->polygons, g_object_ref_sink (polygon));