From a42b67d7c2dce2a2683e3b4cba79980c541b336f Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Fri, 3 Dec 2004 15:46:42 +0000 Subject: fix a huge memleak (thanks to Jerome for reporting) CVS patchset: 7190 CVS date: 2004/12/03 15:46:42 --- src/libxinevdec/image.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libxinevdec/image.c b/src/libxinevdec/image.c index d82b1f194..413aee26f 100644 --- a/src/libxinevdec/image.c +++ b/src/libxinevdec/image.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: image.c,v 1.15 2004/07/11 21:38:05 mroi Exp $ + * $Id: image.c,v 1.16 2004/12/03 15:46:42 mroi Exp $ * * a image video decoder */ @@ -263,7 +263,10 @@ static void end_callback(png_structp png_ptr, png_infop info) { *out = le2me_16(*out); } + + free(this->rows[row]); } + free(this->rows); _x_stream_info_set(this->stream, XINE_STREAM_INFO_FRAME_DURATION, img->duration); img->draw(img, this->stream); img->free(img); -- cgit v1.2.3