mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
io: Don't set close callback in xmlParserInputBufferCreateFd
This commit is contained in:
@@ -6488,7 +6488,6 @@ htmlReadFd(int fd, const char *url, const char *encoding, int options)
|
||||
htmlCtxtUseOptions(ctxt, options);
|
||||
|
||||
input = xmlNewInputFd(ctxt, url, fd, encoding, 0);
|
||||
input->buf->closecallback = NULL;
|
||||
|
||||
doc = htmlCtxtParseDocument(ctxt, input);
|
||||
|
||||
@@ -6660,7 +6659,6 @@ htmlCtxtReadFd(htmlParserCtxtPtr ctxt, int fd,
|
||||
htmlCtxtUseOptions(ctxt, options);
|
||||
|
||||
input = xmlNewInputFd(ctxt, URL, fd, encoding, 0);
|
||||
input->buf->closecallback = NULL;
|
||||
|
||||
return(htmlCtxtParseDocument(ctxt, input));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user