Hi,
in the one place where you use realloc() in PIL, you ignore its return
value. That could lead to problems if realloc() decided to move the
allocated block away. Although that's not a problem in your case, since
the block can only be shrunk, new gcc still complains about it, so it
would be a good idea to fix it.
Attached is a (trivial) patch against 20051211 snapshot.
regards
jan matejek
--- path.c.orig 2005-12-21 16:17:07.578884892 +0100
+++ path.c 2005-12-21 16:17:25.047272778 +0100
@@ -299,7 +299,7 @@
self->count = j;
/* shrink coordinate array */
- realloc(self->xy, 2 * self->count * sizeof(double));
+ self->xy = realloc(self->xy, 2 * self->count * sizeof(double));
return Py_BuildValue("i", i); /* number of removed vertices */
}
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig