]> granicus.if.org Git - php/commitdiff
fix compile warnings (patch by Phil Oleson)
authorAntony Dovgal <tony2001@php.net>
Wed, 13 Aug 2008 08:08:30 +0000 (08:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 13 Aug 2008 08:08:30 +0000 (08:08 +0000)
ext/pspell/pspell.c

index dc607a0d122c1e6a429bc7ab6fbe430edd618eec..0de4c2a6164220707644a7819847a86b56246c2a 100644 (file)
@@ -374,7 +374,7 @@ static PHP_FUNCTION(pspell_new)
 
        if(pspell_error_number(ret) != 0){
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "PSPELL couldn't open the dictionary. reason: %s", pspell_error_message(ret));
-               delete_pspell_manager(ret);
+               delete_pspell_can_have_error(ret);
                RETURN_FALSE;
        }
        
@@ -492,7 +492,7 @@ static PHP_FUNCTION(pspell_new_personal)
 
        if(pspell_error_number(ret) != 0){
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "PSPELL couldn't open the dictionary. reason: %s", pspell_error_message(ret));
-               delete_pspell_manager(ret);
+               delete_pspell_can_have_error(ret);
                RETURN_FALSE;
        }
        
@@ -526,7 +526,7 @@ static PHP_FUNCTION(pspell_new_config)
 
        if(pspell_error_number(ret) != 0){
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "PSPELL couldn't open the dictionary. reason: %s", pspell_error_message(ret));
-               delete_pspell_manager(ret);
+               delete_pspell_can_have_error(ret);
                RETURN_FALSE;
        }