From 27db337ccd73905722619ccde90c93c40d98e96a Mon Sep 17 00:00:00 2001
From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org>
Date: Fri, 17 Apr 1998 01:36:08 +0200
Subject: [PATCH] memory leak fix

Rev: src/modules/Image/encodings/gif.c:1.41
---
 src/modules/Image/encodings/gif.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/Image/encodings/gif.c b/src/modules/Image/encodings/gif.c
index 1125e80284..3e8485e9e7 100644
--- a/src/modules/Image/encodings/gif.c
+++ b/src/modules/Image/encodings/gif.c
@@ -1,9 +1,9 @@
-/* $Id: gif.c,v 1.40 1998/04/16 23:34:15 mirar Exp $ */
+/* $Id: gif.c,v 1.41 1998/04/16 23:36:08 mirar Exp $ */
 
 /*
 **! module Image
 **! note
-**!	$Id: gif.c,v 1.40 1998/04/16 23:34:15 mirar Exp $
+**!	$Id: gif.c,v 1.41 1998/04/16 23:36:08 mirar Exp $
 **! submodule GIF
 **!
 **!	This submodule keep the GIF encode/decode capabilities
@@ -31,7 +31,7 @@
 #include <ctype.h>
 
 #include "stralloc.h"
-RCSID("$Id: gif.c,v 1.40 1998/04/16 23:34:15 mirar Exp $");
+RCSID("$Id: gif.c,v 1.41 1998/04/16 23:36:08 mirar Exp $");
 #include "pike_macros.h"
 #include "object.h"
 #include "constants.h"
@@ -1922,7 +1922,7 @@ static void image_gif__decode(INT32 args)
 		     gif_deinterlace(aimg->img,aimg->xsize,aimg->ysize);
 	       }
 
-	       if (lcto) { lcto->refs++; push_object(lcto); }
+	       if (lcto) push_object(lcto); 
 	       else push_int(0);
 	       
 	       push_int(interlace);
-- 
GitLab