When using pdf_get_buffer() and doing a correct cleanup by calling pdf_delete()

this always resulted in a coredump (after everything was finished, so only
visible in the logfile).
So it seems to be neccesary to copy the contents of the result of get_buffer,
to avoid this coredump.
This commit is contained in:
Rainer Schaaf 2001-02-21 23:30:21 +00:00
parent 09c7116f6e
commit 28ed45fa72

View File

@ -2176,7 +2176,7 @@ PHP_FUNCTION(pdf_get_buffer) {
buffer = PDF_get_buffer(pdf, &size);
RETURN_STRINGL((char *)buffer, size, 0);
RETURN_STRINGL((char *)buffer, size, 1);
}
/* }}} */