From: Pierre-Luc Beaudoin Date: Wed, 25 Mar 2009 18:23:12 +0000 (+0200) Subject: Fix Actor clean-up X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01775df407182344e26c4a39bec90595e6bd6324;p=libchamplain Fix Actor clean-up --- diff --git a/champlain/champlain-network-map-source.c b/champlain/champlain-network-map-source.c index 5c77a9d..2943079 100644 --- a/champlain/champlain-network-map-source.c +++ b/champlain/champlain-network-map-source.c @@ -514,7 +514,6 @@ champlain_network_map_source_get_tile (ChamplainMapSource *map_source, champlain_tile_set_state (tile, CHAMPLAIN_STATE_DONE); DEBUG ("Tile loaded from cache"); champlain_view_tile_ready (view, zoom_level, tile, FALSE); - g_object_unref (actor); g_object_unref (tile); g_object_unref (zoom_level); } diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index f4bd2bc..5da6db8 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -1380,9 +1380,10 @@ view_position_tile (ChamplainView* view, ChamplainTile* tile) gint y; guint size; - g_object_get (G_OBJECT (tile), "actor", &actor, - "x", &x, "y", &y, - "size", &size, NULL); + actor = champlain_tile_get_actor (tile); + x = champlain_tile_get_x (tile); + y = champlain_tile_get_y (tile); + size = champlain_tile_get_size (tile); clutter_actor_set_position (actor, (x * size) - priv->anchor.x,