[svn:PHP-Sandwich] rev 1412 - PHP-Sandwich/trunk

[email protected] 25 Jul 2005 20:41:31 -0000
Newsgroups perl.php.sandwich.dev
Message-ID <[email protected]>
Author: gschlossnagle
Date: Mon Jul 25 13:41:31 2005
New Revision: 1412

Modified:
   PHP-Sandwich/trunk/PHP.xs
Log:
need to zval_ptr_dtor, not zval_dtor


Modified: PHP-Sandwich/trunk/PHP.xs
==============================================================================
--- PHP-Sandwich/trunk/PHP.xs	(original)
+++ PHP-Sandwich/trunk/PHP.xs	Mon Jul 25 13:41:31 2005
@@ -618,7 +618,7 @@ SV* SAND_instantiate(interp, class, ...)
       {
         zend_fcall_info fci;
         zval method;
-        zval *retval;
+        zval *retval = NULL;
         zend_class_entry *ce;
         int param_count = 0;
         zval ***params = NULL;
@@ -654,7 +654,7 @@ SV* SAND_instantiate(interp, class, ...)
           }
           zval_dtor(&method);
         }
-        zval_dtor(retval);
+        if(retval) zval_ptr_dtor(&retval);
         if(fci.param_count > 0) {
           int i;
           for (i=0; i < fci.param_count; i++) {