Mercurial > mplayer.hg
changeset 32829:d1ae72443bd2
Prevent a segmentation fault.
author | ib |
---|---|
date | Wed, 16 Feb 2011 18:29:24 +0000 |
parents | 819c51338f75 |
children | 5cec4caabf42 |
files | gui/skin/font.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;