To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=113663
------- Additional comments from m...@openoffice.org Fri Jan 7 18:12:58 +0000 2011 ------- @zhangjfibm: sorry for the delay, was busy with other things, until i forgot about this :( i can confirm the problem that saving a document will then leak the CDocument instance. this was caused by the serialization methods creating new CNodes, but not freeing them. i have a fix for this, and will attach it here. regarding your concerns: 1. the libxml documentation says: "Free a node, this is a recursive behaviour, all the children are freed too." so there should be no problem. 2. the CNodes are stored in a global map, but the map does not retain the CNodes. as soon as all clients of a CNode release it, it will be freed and removed from the global map. if a node for the same m_aNodePtr is needed later, a new CNode will be created. so it is perfectly normal that you see several CNodes being created with the same m_aNodePtr. this is only an error if they are alive at the _same_ time. such a problem did not occur to me so far. --------------------------------------------------------------------- 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