Browse Source

Fixed a crash bug that can occur due to PDF_delete() being called more then

once and E_ERROR occurring during the shutdown sequence.
PHP-5
Ilia Alshanetsky 24 years ago
parent
commit
a6e02dc45d
  1. 3
      ext/pdf/pdf.c

3
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);
}
}
/* }}} */

Loading…
Cancel
Save