[gdome]reference counts and freeDoc



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]