From 51fcd480712723fc89e20bf2169981e74b565e23 Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 29 Jun 2007 16:09:43 +0000 Subject: Worst memory leak ever... --- lib/Image.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Image.cc b/lib/Image.cc index 14116f5..432f16a 100644 --- a/lib/Image.cc +++ b/lib/Image.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Image.cc,v 1.17 2007-05-30 11:57:10 pixel Exp $ */ +/* $Id: Image.cc,v 1.18 2007-06-29 16:09:43 pixel Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -277,6 +277,7 @@ bool Image::Prepare(unsigned int f) throw (GeneralException) { } jpeg_finish_compress(&cinfo); jpeg_destroy_compress(&cinfo); + free(rgb_buffer); } #endif break; -- cgit v1.2.3