]> err.no Git - libchamplain/commitdiff
Fix a warning when attempting to remove an actor that has been destroyed
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Thu, 10 Sep 2009 17:03:59 +0000 (13:03 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Thu, 10 Sep 2009 17:03:59 +0000 (13:03 -0400)
champlain/champlain-view.c

index a7e4e0adc3aecf18e2bbd4419c3f101631fb21c7..ffb4b6abdf8e6b3da280cc53002ef62127881a00 100644 (file)
@@ -1764,7 +1764,8 @@ view_load_visible_tiles (ChamplainView *view)
           {
             actor = champlain_tile_get_actor (tile);
             group = champlain_zoom_level_get_actor (level);
-            clutter_container_remove_actor (CLUTTER_CONTAINER (group), actor);
+            if (actor != NULL)
+              clutter_container_remove_actor (CLUTTER_CONTAINER (group), actor);
           }
         champlain_zoom_level_remove_tile (level, tile);
         count = champlain_zoom_level_tile_count (level);