]> granicus.if.org Git - php/commitdiff
Don't forget to unload t1lib.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 29 Dec 2004 21:07:59 +0000 (21:07 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 29 Dec 2004 21:07:59 +0000 (21:07 +0000)
ext/gd/gd.c

index 1a00e92a17ec816285b86404b65939fd2d4edec1..83b2746d3a8ab0501187f08cc43c22c30548ffa5 100644 (file)
@@ -335,7 +335,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),
@@ -373,6 +373,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)