summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/bitmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/bitmap.c b/gui/bitmap.c
index 4e61ba600f..e844aabc44 100644
--- a/gui/bitmap.c
+++ b/gui/bitmap.c
@@ -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;
}