Browse Source

Fixed leaks. Other leaks are originated in libgd.

experimental/threaded
Moriyoshi Koizumi 23 years ago
parent
commit
4124672edf
  1. 13
      ext/gd/gd.c
  2. 1
      ext/gd/php_gd.h

13
ext/gd/gd.c

@ -320,7 +320,7 @@ zend_module_entry gd_module_entry = {
PHP_MINIT(gd),
NULL,
NULL,
NULL,
PHP_RSHUTDOWN(gd),
PHP_MINFO(gd),
NO_VERSION_YET,
STANDARD_MODULE_PROPERTIES
@ -412,6 +412,17 @@ PHP_MINIT_FUNCTION(gd)
}
/* }}} */
/* {{{ PHP_RSHUTDOWN_FUNCTION
*/
PHP_RSHUTDOWN_FUNCTION(gd)
{
#if HAVE_LIBGD20
gdFreeFontCache();
#endif
return SUCCESS;
}
/* }}} */
/* {{{ PHP_MINFO_FUNCTION
*/
PHP_MINFO_FUNCTION(gd)

1
ext/gd/php_gd.h

@ -58,6 +58,7 @@ extern zend_module_entry gd_module_entry;
PHP_MINFO_FUNCTION(gd);
PHP_MINIT_FUNCTION(gd);
PHP_MSHUTDOWN_FUNCTION(gd);
PHP_RSHUTDOWN_FUNCTION(gd);
PHP_FUNCTION(gd_info);
PHP_FUNCTION(imagearc);

Loading…
Cancel
Save