[MPlayer-cvslog] r23217 - trunk/gui/bitmap.c

reimar subversion at mplayerhq.hu
Wed May 2 18:39:36 CEST 2007


Author: reimar
Date: Wed May  2 18:39:35 2007
New Revision: 23217

Log:
Missing free on error in conv24to32


Modified:
   trunk/gui/bitmap.c

Modified: trunk/gui/bitmap.c
==============================================================================
--- trunk/gui/bitmap.c	(original)
+++ trunk/gui/bitmap.c	Wed May  2 18:39:35 2007
@@ -76,6 +76,7 @@ static int conv24to32( txSample * bf )
    bf->BPP=32;
    if ( ( bf->Image=malloc( bf->ImageSize ) ) == NULL )
     {
+     free( tmpImage );
      mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[bitmap] not enough memory for image\n" );
      return 1;
     }



More information about the MPlayer-cvslog mailing list