Re: [gdome]mkref / unref
- From: Luca Padovani <lpadovan cs unibo it>
- To: Laurent Marzullo <marzullo la-defense oilfield slb com>
- Cc: "gdome gnome org" <gdome gnome org>
- Subject: Re: [gdome]mkref / unref
- Date: Thu, 22 Jan 2004 13:16:13 +0100
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]