cvs: gd /libgd gd.c gd_png.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1178477205@cvsserver>
pajoye		Sun May  6 18:46:45 2007 UTC

  Modified files:              
    /gd/libgd	gd.c gd_png.c 
  Log:
  - MFB: #67, Preferable calls of gdFree() in libgd
    (tabe at fixedpoint dot jp)
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.54&r2=1.55&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.54 gd/libgd/gd.c:1.55
--- gd/libgd/gd.c:1.54	Sun May  6 18:43:06 2007
+++ gd/libgd/gd.c	Sun May  6 18:46:45 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.54 2007/05/06 18:43:06 pajoye Exp $ */
+/* $Id: gd.c,v 1.55 2007/05/06 18:46:45 pajoye Exp $ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -151,7 +151,7 @@
   }
   im->tpixels = (int **) gdMalloc (sizeof (int *) * sy);
   if (!im->tpixels) {
-    free(im);
+    gdFree(im);
     return 0;
   }
   im->polyInts = 0;
http://cvs.php.net/viewvc.cgi/gd/libgd/gd_png.c?r1=1.21&r2=1.22&diff_format=u
Index: gd/libgd/gd_png.c
diff -u gd/libgd/gd_png.c:1.21 gd/libgd/gd_png.c:1.22
--- gd/libgd/gd_png.c:1.21	Sun Jan  7 18:18:06 2007
+++ gd/libgd/gd_png.c	Sun May  6 18:46:45 2007
@@ -1,4 +1,4 @@
-/* $Id: gd_png.c,v 1.21 2007/01/07 18:18:06 pajoye Exp $ */
+/* $Id: gd_png.c,v 1.22 2007/05/06 18:46:45 pajoye Exp $ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -746,7 +746,7 @@
 	      for (i = 0; i < j; ++i)
 		gdFree (row_pointers[i]);
               /* 2.0.29: memory leak TBB */
-              free(row_pointers);
+              gdFree(row_pointers);
 	      return;
 	    }
 	  pOutputRow = *prow_pointers++;
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.