From 01775df407182344e26c4a39bec90595e6bd6324 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Wed, 25 Mar 2009 20:23:12 +0200 Subject: [PATCH] Fix Actor clean-up --- champlain/champlain-network-map-source.c | 1 - champlain/champlain-view.c | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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, -- 2.39.5