Wed Oct 21 11:48:55 2009pc88mxer [...] gmail.com - Ticket created
Subject:
fixing a memory leak in XML::Xerces
Date:
Wed, 21 Oct 2009 10:48:33 -0500
To:
bug-XML-Xerces [...] rt.cpan.org
From:
E R <pc88mxer [...] gmail.com>
Hi,
I think there is a memory leak in XML::Xerces::XercesDOMParser.
In the DESTROY method there should be something like:
if ($_[0]->can('cleanup')) {
$_[0]->cleanup();
}
The setErrorHandler method saves the error handler in the global hash
%XML::Xerces::REMEMBER. Likewise for setEntityResolver. The call to
cleanup() is needed to remove those references.