# HG changeset patch # User reimar # Date 1178123975 0 # Node ID e1d0d26f5e3ca15988ebe046eeac09f0d75275ff # Parent 1009d14500d1b08c683e02dccf6bfb396489514e Missing free on error in conv24to32 diff -r 1009d14500d1 -r e1d0d26f5e3c gui/bitmap.c --- a/gui/bitmap.c Wed May 02 16:38:22 2007 +0000 +++ b/gui/bitmap.c Wed May 02 16:39:35 2007 +0000 @@ -76,6 +76,7 @@ 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; }