summaryrefslogtreecommitdiff
path: root/ext/pspell/pspell.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pspell/pspell.c')
-rw-r--r--ext/pspell/pspell.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c
index 76534e5710..fec700adb8 100644
--- a/ext/pspell/pspell.c
+++ b/ext/pspell/pspell.c
@@ -78,15 +78,17 @@ zend_module_entry pspell_module_entry = {
ZEND_GET_MODULE(pspell)
#endif
-static void php_pspell_close(zend_rsrc_list_entry *rsrc)
+static void php_pspell_close(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
PspellManager *manager = (PspellManager *)rsrc->ptr;
+
delete_pspell_manager(manager);
}
-static void php_pspell_close_config(zend_rsrc_list_entry *rsrc)
+static void php_pspell_close_config(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
PspellConfig *config = (PspellConfig *)rsrc->ptr;
+
delete_pspell_config(config);
}