[gdome]reference counts and freeDoc
- From: Tobias Peters <tpeters uni-oldenburg de>
- To: gdome gnome org
- Subject: [gdome]reference counts and freeDoc
- Date: Thu, 14 Jun 2001 11:28:23 +0200 (METDST)
For my ruby wrapper I need to clarify some questions about gdome's memory
handling (especially because ruby is a garbage-collection language)
Do all functions returning a Gdome... object increase that object's
reference count?
So after
GdomeElement* el = gdome_doc_documentElement(doc, exc);
el = gdome_doc_documentElement(doc, exc);
the element node pointed to by el has reference count 2 ?
Does gdome_doc_unref do the same thing as gdome_di_freeDoc when its
reference count reaches zero?
What happens when some nodes in this document are still being referenced?
Tobias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]