changeset 23199:e1d0d26f5e3c

Missing free on error in conv24to32
author reimar
date Wed, 02 May 2007 16:39:35 +0000
parents 1009d14500d1
children 44cf48083874
files gui/bitmap.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }