https://issues.apache.org/ooo/show_bug.cgi?id=118640

--- Comment #9 from Armin Le Grand <[email protected]> ---
The ~FastSaxParser() in sax fails in destruction of his member ParserData, that
is a struct holding uno references, a locale and has con/destructor. It also
has an inmplicit copy construtor used in FastSaxParser::pushEntity when it gets
pushed to a ::std::stack< Entity > in FastSaxParser::parseStream. The
origilally local Entity incarnation in the same method explicitely uses
XML_ParserFree( entity.mpParser ) what the destructor of the copy-constructed
Entity incarnation does not do.
Also checked where 'XML_ParserFree' comes from, it seems to be a macro in
Python (thus may also be python-version related). I am no expert in this area.
My guess is that class FastSaxParser should not use a ::std::stack< Entity >
which implicitely copy-constructs Entity-incarnations and destroys them, but
better should use a ::std::stack< Entity& > type. Lets try that...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to