From 63a44b0b7a23d408ee3265f834bf4694c9bcd489 Mon Sep 17 00:00:00 2001 From: Nicolas Vion Date: Thu, 30 Oct 2008 16:43:00 +0000 Subject: [PATCH] * Add destructor for "caca_file" resources --- caca-php/php_caca.c | 1 + 1 file changed, 1 insertion(+) diff --git a/caca-php/php_caca.c b/caca-php/php_caca.c index 4f321e1..766da20 100644 --- a/caca-php/php_caca.c +++ b/caca-php/php_caca.c @@ -197,6 +197,7 @@ static void php_caca_font_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) { } static void php_caca_file_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) { + caca_file_close(rsrc->ptr); } static void php_caca_display_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) {