I think I found a leak in unpluck when the document is closed. In function
free_plucker_doc in unpluck.c at the end of the function we do
if (doc->handle != NULL) {
doc->handle->free(doc->handle);
}
I think this should be
if (doc->handle != NULL) {
doc->handle->free(doc->handle);
free(doc->handle);
}
since we are malloc'ing the handle prior to this.
Also, it seems that the plkr_document* passed back from plkr_OpenDoc needs
to be free'd too since it's malloc'd in plkr_OpenDoc and isn't free'd in
plkr_CloseDoc. Right now, I'm freeing this memory outside of
plkr_CloseDoc, but I wonder if it should be done in plkr_CloseDoc.
Thanks
Bill
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev