From: Daniel Beulshausen Date: Mon, 10 Sep 2001 19:28:50 +0000 (+0000) Subject: fix resource destruction X-Git-Tag: PRE_SUBST_Z_MACROS~127 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f9629d4662353d8708fd41cd303df3a26783047;p=php fix resource destruction --- diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 7757e6980e..61183d1480 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -2266,7 +2266,7 @@ PHP_FUNCTION(pdf_get_minorversion) } /* }}} */ -/* {{{ proto void pdf_delete(int pdfdoc) +/* {{{ proto bool pdf_delete(int pdfdoc) Deletes the PDF object */ PHP_FUNCTION(pdf_delete) { @@ -2278,9 +2278,7 @@ PHP_FUNCTION(pdf_delete) } ZEND_FETCH_RESOURCE(pdf, PDF *, arg1, -1, "pdf object", le_pdf); - - PDF_delete(pdf); - zend_list_delete(Z_LVAL_PP(arg1)); + zend_list_delete(Z_RESVAL_PP(arg1)); RETURN_TRUE; }