File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ static int php_libxml_clear_object(php_libxml_node_object *object)
113
113
return php_libxml_decrement_doc_ref (object );
114
114
}
115
115
116
- static int php_libxml_unregister_node (xmlNodePtr nodep )
116
+ static void php_libxml_unregister_node (xmlNodePtr nodep )
117
117
{
118
118
php_libxml_node_object * wrapper ;
119
119
@@ -130,8 +130,6 @@ static int php_libxml_unregister_node(xmlNodePtr nodep)
130
130
nodeptr -> node = NULL ;
131
131
}
132
132
}
133
-
134
- return -1 ;
135
133
}
136
134
137
135
static void php_libxml_node_free (xmlNodePtr node )
@@ -209,9 +207,7 @@ PHP_LIBXML_API void php_libxml_node_free_list(xmlNodePtr node)
209
207
210
208
curnode = node -> next ;
211
209
xmlUnlinkNode (node );
212
- if (php_libxml_unregister_node (node ) == 0 ) {
213
- node -> doc = NULL ;
214
- }
210
+ php_libxml_unregister_node (node );
215
211
php_libxml_node_free (node );
216
212
}
217
213
}
@@ -1270,9 +1266,7 @@ PHP_LIBXML_API void php_libxml_node_free_resource(xmlNodePtr node)
1270
1266
default :
1271
1267
php_libxml_node_free_list ((xmlNodePtr ) node -> properties );
1272
1268
}
1273
- if (php_libxml_unregister_node (node ) == 0 ) {
1274
- node -> doc = NULL ;
1275
- }
1269
+ php_libxml_unregister_node (node );
1276
1270
php_libxml_node_free (node );
1277
1271
} else {
1278
1272
php_libxml_unregister_node (node );
You can’t perform that action at this time.
0 commit comments