X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fgraphics.c;h=0c3215a6f3c66f01b1c50bb63a259ff844a49d3f;hb=301cf7b26751ff7e19f59ff871f6b54ff339d040;hp=afe3e76386a75899cda8850260cd68f566513cb8;hpb=13cfe3109c5e42ac2cc77321646ce1172c1a0276;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/graphics.c b/libchimara/graphics.c index afe3e76..0c3215a 100644 --- a/libchimara/graphics.c +++ b/libchimara/graphics.c @@ -123,6 +123,9 @@ load_image_in_cache(glui32 image, gint width, gint height) info = load_image_from_blorb(resource, image, width, height); } + if(info == NULL) + return NULL; + /* Store the image in the cache */ gdk_threads_enter();