1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-05 19:01:18 +03:00

tree: Deprecate xmlBuffer members

This commit is contained in:
Nick Wellnhofer
2024-06-10 23:20:22 +02:00
parent 712a31abe4
commit b34dc1e4a3
3 changed files with 20 additions and 14 deletions

View File

@ -2773,8 +2773,7 @@ libxml_serializeNode(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
xmlSaveTree(ctxt, node);
xmlSaveClose(ctxt);
c_retval = buf->content;
buf->content = NULL;
c_retval = xmlBufferDetach(buf);
xmlBufferFree(buf);
py_retval = libxml_charPtrWrap((char *) c_retval);