Commits

pajoye  committed ea7c2cd

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

  • Participants
  • Parent commits 1f29704

Comments (0)

Files changed (2)

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

File src/gd_png.c

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