mkref / unref

Laurent Marzullo <[email protected]> Thu, 22 Jan 2004 12:30:26 +0100
Newsgroups gmane.comp.gnome.gdome
Message-ID <1074771026.18560.9.camel@MARZULLO-MIS>
Hello,

When should I write gdome_xxx_unref( ... ) ?

Should I write unref for each and only each mkref or should
I also write unref when getting object via other method ?

Ex:
void
my_function( void )
{
    GdomeElement* elt = gdome_doc_documentElement( mydoc , &excp );
    // Shoul I write 
    gdome_el_unref( elt , &excp );
    // or not ?
}

Thanks very much

-- 
Laurent Marzullo <[email protected]>