1. libgd
  2. Untitled project
  3. gd-libgd

Commits

pajoye  committed 6b176ae

- MFB: #67, Preferable calls of gdFree() in libgd
(tabe at fixedpoint dot jp)

  • Participants
  • Parent commits 9b86f3a
  • Branches GD-2.0

Comments (0)

Files changed (2)

File src/gd.c

View file
   }
   im->tpixels = (int **) gdMalloc (sizeof (int *) * sy);
   if (!im->tpixels) {
-    free(im);
+    gdFree(im);
     return 0;
   }
   im->polyInts = 0;

File src/gd_png.c

View file
 	      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++;