[gdome]gdome_di_freeDoc
- From: Andrew Hughes Chatham <ahc4 duke edu>
- To: gdome gnome org
- Subject: [gdome]gdome_di_freeDoc
- Date: Fri, 3 Aug 2001 15:01:04 -0400 (EDT)
Is there a reason gdome_doc_unref does not call gdome_di_freeDoc? I
assumed that when there were no longer any references to a document, but
that leaked memory. When the reference count goes to zero, it seems to
only free its personal storage, not the xml document it contains.
Is there a reason it works that way? Is it bad to free the xml document
when there might be child nodes still extant? When is it safe to call
freeDoc?
I'm passing references to documents around, and it would be convenient if
the XML document were destroyed when the last reference went away. Is
there a good way to do this?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]