Re: [gdome]mkref / unref



Hi, 

On Thu, 2004-01-22 at 12:30, Laurent Marzullo wrote:
> Should I write unref for each and only each mkref or should
> I also write unref when getting object via other method ?

the second one. If a method returns an object, then the object's
reference count has been incremented.

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

yes you should

Cheers,
-- luca




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]