You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org> on 2009/11/03 08:29:59 UTC
[jira] Closed: (XERCESC-1563) DOMNodeList::~DOMNodeList() does not
remove instance from cache
[ https://issues.apache.org/jira/browse/XERCESC-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov closed XERCESC-1563.
------------------------------------
Resolution: Invalid
I believe Xerces-C++ simply reuses the object from the documen't memory pool.
> DOMNodeList::~DOMNodeList() does not remove instance from cache
> ---------------------------------------------------------------
>
> Key: XERCESC-1563
> URL: https://issues.apache.org/jira/browse/XERCESC-1563
> Project: Xerces-C++
> Issue Type: Bug
> Components: DOM
> Affects Versions: 2.7.0
> Environment: OS independent, at least Xerces 2.7.0 and trunk 3.0
> Reporter: Ronald Lamprecht
>
> A DOMNodeList retrieved by a getElementsByTagNameNS () call can only be "released" by the public ~DOMNodeList() destructor. This destructor just deletes the object, but does not remove it from the cache. Any further retrieval of a DOMNodeList that describes the same Nodes as the first one is answered with the address of the deleted DOMNodeList from the cache instead of a new created DOMNodeList! This is of cause a potential source for memory access exceptions.
> Ronald
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org