From 86f5f3b337b949b3a93eac9708707a4a095bb204 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Mon, 9 Feb 2009 22:20:55 +0200 Subject: [PATCH] Don't generate a million criticals if the image is not found --- champlain/champlain-tile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/champlain/champlain-tile.c b/champlain/champlain-tile.c index fe57660..94bda02 100644 --- a/champlain/champlain-tile.c +++ b/champlain/champlain-tile.c @@ -57,6 +57,8 @@ static void create_error_tile(Map* map, Tile* tile) { tile->actor = clutter_texture_new_from_file(DATADIR "/champlain/error.svg", NULL); + if (!tile->actor) + return; tile_set_position(map, tile); -- 2.39.5