We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a47d4 commit 02d022dCopy full SHA for 02d022d
php_phongo.c
@@ -1292,6 +1292,10 @@ void php_phongo_result_free(php_phongo_result_t *result)
1292
mongoc_cursor_destroy(result->cursor);
1293
result->cursor = NULL;
1294
}
1295
+ if (result->visitor_data.zchild) {
1296
+ zval_ptr_dtor(&result->visitor_data.zchild);
1297
+ result->visitor_data.zchild = NULL;
1298
+ }
1299
1300
1301
/* {{{ Iterator */
@@ -1308,8 +1312,6 @@ static void phongo_cursor_it_invalidate_current(zend_object_iterator *iter TSRML
1308
1312
1309
1313
static void phongo_cursor_it_dtor(zend_object_iterator *iter TSRMLS_DC) /* {{{ */
1310
1314
{
1311
- iter->funcs->invalidate_current(iter TSRMLS_CC);
-
1315
efree(iter);
1316
} /* }}} */
1317
0 commit comments