To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=112783
                 Issue #|112783
                 Summary|unoxml: ownership cycles in unoxml
               Component|framework
                 Version|DEV300m83
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|mba
             Reported by|cmc





------- Additional comments from c...@openoffice.org Tue Jun 29 12:18:53 +0000 
2010 -------
In unoxml when a uno xml element is created, e.g. 

xDoc->getDocumentElement() in 
desktop/source/deployment/registry/package/dp_description.cxx

Each such UNO xml node is implemented with a CNode
every CNode takes a uno::Reference to its owner document for the nodes lifecycle
i.e. m_rDocument = getOwnerDocument() in unoxml/source/dom/node.cxx

but each CNode also calls "addnode" on its owner to add a uno::Reference to that
node from the ownerdocument for its lifecycle

Each node holds a reference to the ownerdocument, and the ownerdocument holds a
reference to each node which means that the whole cycle doesn't get released.

In this case I think it should be sufficient for each child node to hold a
reference to the parent document.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to