File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1344,18 +1344,14 @@ PHP_LIBXML_API void php_libxml_node_free_resource(xmlNodePtr node)
1344
1344
1345
1345
PHP_LIBXML_API void php_libxml_node_decrement_resource (php_libxml_node_object * object )
1346
1346
{
1347
- int ret_refcount = -1 ;
1348
- xmlNodePtr nodep ;
1349
- php_libxml_node_ptr * obj_node ;
1350
-
1351
1347
if (object != NULL && object -> node != NULL ) {
1352
- obj_node = (php_libxml_node_ptr * ) object -> node ;
1353
- nodep = object -> node -> node ;
1354
- ret_refcount = php_libxml_decrement_node_ptr (object );
1348
+ php_libxml_node_ptr * obj_node = (php_libxml_node_ptr * ) object -> node ;
1349
+ xmlNodePtr nodep = obj_node -> node ;
1350
+ int ret_refcount = php_libxml_decrement_node_ptr (object );
1355
1351
if (ret_refcount == 0 ) {
1356
1352
php_libxml_node_free_resource (nodep );
1357
1353
} else {
1358
- if (obj_node && object == obj_node -> _private ) {
1354
+ if (object == obj_node -> _private ) {
1359
1355
obj_node -> _private = NULL ;
1360
1356
}
1361
1357
}
You can’t perform that action at this time.
0 commit comments