From: Pierre-Luc Beaudoin Date: Thu, 10 Sep 2009 17:03:59 +0000 (-0400) Subject: Fix a warning when attempting to remove an actor that has been destroyed X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30e9f1364077d5b144f444c53dd298ae4d3ffe94;p=libchamplain Fix a warning when attempting to remove an actor that has been destroyed --- diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index a7e4e0a..ffb4b6a 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -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);