X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fgraphics.c;h=0c3215a6f3c66f01b1c50bb63a259ff844a49d3f;hb=c9c4577dd8b78fb65d5475e1c40836d22dfd80c3;hp=afe3e76386a75899cda8850260cd68f566513cb8;hpb=f19a194bd066ea4320c1c6b6b8c5a375f7787af5;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();