Commits

pajoye  committed 3d96fcd

- MFB: #14, sanity check

  • Participants
  • Parent commits 5c68482

Comments (0)

Files changed (1)

 
 	nc =  gdImageTileGet(im,x,y);
 	pts = (int **) gdCalloc(sizeof(int *) * im->sy, sizeof(int));
+	if (!pts) {
+		return;	
+	}
 
 	for (i=0; i<im->sy;i++) {
 		pts[i] = (int *) gdCalloc(im->sx, sizeof(int));