cvs: gd(GD_2_0) /libgd gd.c gd_png.c gdft.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1175460061@cvsserver>
pajoye		Sun Apr  1 20:41:01 2007 UTC

  Modified files:              (Branch: GD_2_0)
    /gd/libgd	gd.c gd_png.c gdft.c 
  Log:
  - #67,  Preferable calls of gdFree() in libg (tabe at fixedpoint dot jp)
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.49.2.3&r2=1.49.2.4&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.49.2.3 gd/libgd/gd.c:1.49.2.4
--- gd/libgd/gd.c:1.49.2.3	Mon Feb 26 23:46:29 2007
+++ gd/libgd/gd.c	Sun Apr  1 20:41:01 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.49.2.3 2007/02/26 23:46:29 pajoye Exp $ */
+/* $Id: gd.c,v 1.49.2.4 2007/04/01 20:41:01 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.21.2.1&diff_format=u
Index: gd/libgd/gd_png.c
diff -u gd/libgd/gd_png.c:1.21 gd/libgd/gd_png.c:1.21.2.1
--- gd/libgd/gd_png.c:1.21	Sun Jan  7 18:18:06 2007
+++ gd/libgd/gd_png.c	Sun Apr  1 20:41:01 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.21.2.1 2007/04/01 20:41:01 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++;
http://cvs.php.net/viewvc.cgi/gd/libgd/gdft.c?r1=1.28.2.4&r2=1.28.2.5&diff_format=u
Index: gd/libgd/gdft.c
diff -u gd/libgd/gdft.c:1.28.2.4 gd/libgd/gdft.c:1.28.2.5
--- gd/libgd/gdft.c:1.28.2.4	Mon Feb 26 19:58:42 2007
+++ gd/libgd/gdft.c	Sun Apr  1 20:41:01 2007
@@ -1645,7 +1645,7 @@
   gdFree (fontlist);
   if (!font_found)
     {
-      free (fullname);
+      gdFree (fullname);
       return "Could not find/open font";
     }
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.