From c6fea156f0151bc91fd84b7ecabfeaa43e0315ed Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 29 Dec 2004 21:08:42 +0000 Subject: [PATCH] MFH: Don't forget to unload t1lib. --- ext/gd/gd.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index efe7eee843..04937e2fb3 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -287,7 +287,7 @@ zend_module_entry gd_module_entry = { "gd", gd_functions, PHP_MINIT(gd), - NULL, + PHP_MSHUTDOWN(gd), NULL, #if HAVE_LIBGD20 && HAVE_GD_STRINGFT PHP_RSHUTDOWN(gd), @@ -324,6 +324,18 @@ static void php_free_gd_font(zend_rsrc_list_entry *rsrc TSRMLS_DC) } /* }}} */ +/* {{{ PHP_MSHUTDOWN_FUNCTION + */ +PHP_MSHUTDOWN_FUNCTION(gd) +{ +#if HAVE_LIBT1 + T1_CloseLib(); +#endif + return SUCCESS; +} +/* }}} */ + + /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(gd) -- 2.50.1