On Wed, 2004-05-05 at 23:28, Luca Padovani wrote: > If you all agree with my diagnosis I'll try a patch shortly. the attached naive patch seems to fix the problem. If noone objects I'll commit it and we may plan for a 0.8.2 soon. --luca
Index: gdome-xml-node.c
===================================================================
RCS file: /cvs/gnome/gdome2/libgdome/gdomecore/gdome-xml-node.c,v
retrieving revision 1.76
diff -c -r1.76 gdome-xml-node.c
*** gdome-xml-node.c 3 Oct 2003 15:53:33 -0000 1.76
--- gdome-xml-node.c 6 May 2004 15:49:59 -0000
***************
*** 165,170 ****
--- 165,175 ----
if (n->_private && type != XML_NAMESPACE_DECL) {
result = (Gdome_xml_Node *)n->_private;
result->refcnt++;
+
+ if (type == XML_DOCUMENT_NODE) {
+ Gdome_xml_Document* doc = (Gdome_xml_Node *)n->_private;
+ doc->livenodes++;
+ }
} else {
switch (type) {
case XML_ELEMENT_NODE:
Attachment:
signature.asc
Description: This is a digitally signed message part