From: Ilia Alshanetsky Date: Mon, 2 Dec 2002 06:35:29 +0000 (+0000) Subject: Fixed a crash bug that can occur due to PDF_delete() being called more then X-Git-Tag: RELEASE_1_0b3~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6e02dc45dd82e08f26602e5cdc0a6819aa539d6;p=php Fixed a crash bug that can occur due to PDF_delete() being called more then once and E_ERROR occurring during the shutdown sequence. --- diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index ce169f7bdd..682daea17f 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -276,8 +276,7 @@ static void custom_errorhandler(PDF *p, int type, const char *shortmsg) case PDF_SystemError: case PDF_UnknownError: default: - if (p !=NULL) PDF_delete(p); /* clean up PDFlib */ - php_error(E_ERROR,"PDFlib error: %s", shortmsg); + php_error(E_WARNING,"PDFlib error: %s", shortmsg); } } /* }}} */