diff options
| author | Piotr Pawłow <pp@siedziba.pl> | 2016-09-23 02:31:55 +0200 |
|---|---|---|
| committer | Piotr Pawłow <pp@siedziba.pl> | 2016-09-23 02:31:55 +0200 |
| commit | 241f4254b8b9925cfa9c5118f18606a49bcd0534 (patch) | |
| tree | eba88eecc7e0b998df4650ccf452cd0e9a917b6d | |
| parent | 1439df72032f29c9ef6f2e23738fca8f2d79d9e0 (diff) | |
Port T1lib resource destructors.
| -rw-r--r-- | php_imlib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/php_imlib.c b/php_imlib.c index 1c32e2d..9fb929d 100644 --- a/php_imlib.c +++ b/php_imlib.c @@ -568,9 +568,9 @@ ImlibPolygon _php_imlib_get_poly(zval* poly_resource) /* {{{ _php_imlib_free_ps_font */ -void _php_imlib_free_ps_font(zend_rsrc_list_entry *rsrc TSRMLS_DC) +ZEND_RSRC_DTOR_FUNC(_php_imlib_free_ps_font) { - int *font = (int *)rsrc->ptr; + int *font = (int *)res->ptr; T1_DeleteFont(*font); efree(font); @@ -579,9 +579,9 @@ void _php_imlib_free_ps_font(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ _php_imlib_free_ps_enc */ -void _php_imlib_free_ps_enc(zend_rsrc_list_entry *rsrc TSRMLS_DC) +ZEND_RSRC_DTOR_FUNC(_php_imlib_free_ps_enc) { - char **enc = (char **)rsrc->ptr; + char **enc = (char **)res->ptr; T1_DeleteEncoding(enc); } |
