cvs: gd(GD_2_0) /libgd/tests/gif bug00005_2.c

[email protected] ("Nuno Lopes")
Newsgroups php.gd.cvs
Message-ID <cvsnlopess1173997436@cvsserver>
nlopess		Thu Mar 15 22:23:56 2007 UTC

  Modified files:              (Branch: GD_2_0)
    /gd/libgd/tests/gif	bug00005_2.c 
  Log:
  fix leak in test
  
http://cvs.php.net/viewvc.cgi/gd/libgd/tests/gif/bug00005_2.c?r1=1.1&r2=1.1.2.1&diff_format=u
Index: gd/libgd/tests/gif/bug00005_2.c
diff -u gd/libgd/tests/gif/bug00005_2.c:1.1 gd/libgd/tests/gif/bug00005_2.c:1.1.2.1
--- gd/libgd/tests/gif/bug00005_2.c:1.1	Tue Jan 23 23:57:54 2007
+++ gd/libgd/tests/gif/bug00005_2.c	Thu Mar 15 22:23:56 2007
@@ -447,8 +447,8 @@
 	if ( ( im = gdImageCreateFromGifPtr(8994,
 					(char*) &gifdata[0]) ) != NULL) {
 		fprintf(stderr, "success!\n");
-		return 0;
 		gdImageDestroy(im);
+		return 0;
 	} else {
 		fprintf(stderr, "failed!\n");
 		return 1;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.