vmx: use xmlBufferDetach() when applicable

xmlBuffer->content was deprecated in libxml2 v2.13.0-33-gb34dc1e4
xmlBufferDetach(xmlBuffer) should be used instead

Signed-off-by: Jakub Palacky <jpalacky@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jakub Palacky 2024-09-12 13:47:22 +02:00 committed by Ján Tomko
parent 09ebe53349
commit cc05007a43

View File

@ -794,7 +794,7 @@ virVMXConvertToUTF8(const char *encoding, const char *string)
goto cleanup;
}
result = (char *)g_steal_pointer(&utf8->content);
result = (char *)xmlBufferDetach(utf8);
cleanup:
xmlCharEncCloseFunc(handler);