From bd83e685ecc9dd2ca7701da963be49922c4467f1 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 2 May 2007 16:39:35 +0000 Subject: Missing free on error in conv24to32 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23217 b3059339-0415-0410-9bf9-f77b7e298cf2 --- gui/bitmap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gui') 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; } -- cgit v1.2.3