]> err.no Git - libchamplain/commitdiff
Fix Tile freeing
authorPierre-Luc Beaudoin <pierre-luc@squidy.info>
Sun, 24 Aug 2008 12:39:15 +0000 (08:39 -0400)
committerPierre-Luc Beaudoin <pierre-luc@squidy.info>
Sun, 24 Aug 2008 12:39:15 +0000 (08:39 -0400)
champlain/tile.c

index 2e4320887c67876a41463bba94a89bd401e72c94..6d90b2cd7ca5a88c46d41642656ec8aaebbe16bd 100644 (file)
@@ -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);
 }