# HG changeset patch # User ib # Date 1297880964 0 # Node ID d1ae72443bd29ba4c726b1c3c7a8acf7f80100a0 # Parent 819c51338f75944dca001e708a2831d04aa534c5 Prevent a segmentation fault. diff -r 819c51338f75 -r d1ae72443bd2 gui/skin/font.c --- a/gui/skin/font.c Wed Feb 16 18:21:02 2011 +0000 +++ b/gui/skin/font.c Wed Feb 16 18:29:24 2011 +0000 @@ -255,6 +255,7 @@ if ( !item->Bitmap.ImageSize ) return NULL; item->Bitmap.BPP=32; item->Bitmap.Image=malloc( item->Bitmap.ImageSize ); + if ( !item->Bitmap.Image ) return NULL; } obuf=(uint32_t *)item->Bitmap.Image;