[MPlayer-cvslog] r32916 - trunk/gui/skin/font.c

ib subversion at mplayerhq.hu
Wed Feb 16 19:29:24 CET 2011


Author: ib
Date: Wed Feb 16 19:29:24 2011
New Revision: 32916

Log:
Prevent a segmentation fault.

Modified:
   trunk/gui/skin/font.c

Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c	Wed Feb 16 19:21:02 2011	(r32915)
+++ trunk/gui/skin/font.c	Wed Feb 16 19:29:24 2011	(r32916)
@@ -255,6 +255,7 @@ txSample * fntRender( wItem * item,int p
    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;


More information about the MPlayer-cvslog mailing list