From 3785f23420f0c85bf54769014a8815dccba74bc0 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Sun, 24 Aug 2008 08:39:15 -0400 Subject: [PATCH] Fix Tile freeing --- champlain/tile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/champlain/tile.c b/champlain/tile.c index 2e43208..6d90b2c 100644 --- a/champlain/tile.c +++ b/champlain/tile.c @@ -185,5 +185,6 @@ tile_load (Map* map, guint zoom_level, guint x, guint y) void tile_free(Tile* tile) { - clutter_actor_destroy(tile->actor); + if(tile->actor) + clutter_actor_destroy(tile->actor); } -- 2.39.5