Re: [xml] [htmlParser] The right way to free a htmlParserCtxtPtr



Le mardi 02 novembre 2004 à 06:46 +0100, Emmanuel Saracco a écrit :

[...]

But browing the libxml2 source code I saw that there is a "htmlCtxtReset
()" that seems to really freeing all stuff (including "ctxt->myDoc").
Should I call this function just before calling "htmlFreeParserCtxt ()"?

Or at least "xmlFreeDoc ()" on ctxt->myDoc (because calling
"htmlCtxtReset ()" generate a segfault)?

Thanks,

Bye




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]