From: divverent Date: Tue, 18 May 2010 10:03:09 +0000 (+0000) Subject: fix a double free problem in jpeg.c X-Git-Tag: xonotic-v0.1.0preview~230^2~279 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f59bcc296e498a2b3851eed449c4de9df178e553;p=xonotic%2Fdarkplaces.git fix a double free problem in jpeg.c git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10199 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/jpeg.c b/jpeg.c index 2220ccb3..965f7c87 100644 --- a/jpeg.c +++ b/jpeg.c @@ -679,7 +679,7 @@ unsigned char* JPEG_LoadImage_BGRA (const unsigned char *f, int filesize) line++; } - Mem_Free (scanline); + Mem_Free (scanline); scanline = NULL; qjpeg_finish_decompress (&cinfo); qjpeg_destroy_decompress (&cinfo);