Issue 113601 - unoxml: When loading an ODF docment, UNO DOM::CDocument object, all UNO DOM::CNode and libxml DOM objects are leaked
Summary: unoxml: When loading an ODF docment, UNO DOM::CDocument object, all UNO DOM::...
Status: CLOSED DUPLICATE of issue 112783
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOO310m11
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: Mathias_Bauer
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 06:08 UTC by zhang jianfang
Modified: 2010-08-04 17:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description zhang jianfang 2010-08-03 06:08:39 UTC
Each time loading an ODF document, it created an UNO XML DOM tree and a
corresponding libxml DOM tree. The root node of UNO XML DOM tree is CDocument
node. In DOM::CDocument::~CDocument(), all uno dom nodes and libxml dom nodes
will be released. 

The problem is the created CDocument object is never released, because there are
cyclic reference between CDocument and all it's CNode objects.
CDocument.m_aNodeRefList keeps reference to all CNodes it creates while each
CNode.m_rDocument keep reference back to CDocument object.

The problem can be observed if you simply open/close any ODF documents.
Comment 1 zhang jianfang 2010-08-03 08:31:14 UTC
Raise priority to P2
Comment 2 mst.ooo 2010-08-04 11:25:09 UTC
thanks, somebody else already reported this.
i hope i'll have time to look at the patch at the other issue soon.

*** This issue has been marked as a duplicate of 112783 ***
Comment 3 mst.ooo 2010-08-04 17:06:34 UTC
close duplicate