free ctxt *after* taking lastError details
This commit is contained in:
parent
a55158aa1f
commit
ca5d4067c9
1 changed files with 4 additions and 4 deletions
|
@ -314,13 +314,13 @@ namespace DOM
|
|||
|
||||
} // extern "C"
|
||||
|
||||
void throwEx(xmlParserCtxtPtr ctxt) {
|
||||
OUString msg = make_error_message(ctxt);
|
||||
xmlFreeParserCtxt(ctxt);
|
||||
void throwEx(xmlParserCtxtPtr ctxt)
|
||||
{
|
||||
com::sun::star::xml::sax::SAXParseException saxex;
|
||||
saxex.Message = msg;
|
||||
saxex.Message = make_error_message(ctxt);
|
||||
saxex.LineNumber = static_cast<sal_Int32>(ctxt->lastError.line);
|
||||
saxex.ColumnNumber = static_cast<sal_Int32>(ctxt->lastError.int2);
|
||||
xmlFreeParserCtxt(ctxt);
|
||||
throw saxex;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue