Re: GParamSpec and memory allocation.
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-list gnome org
- Subject: Re: GParamSpec and memory allocation.
- Date: Mon, 29 Oct 2007 17:39:43 +0000
On Mon, 2007-10-29 at 14:48 -0200, Alexandre Moreira wrote:
> Hello, everyone.
> I'm sorry if this is a stupid question but: Am I supposed to free the
> return of a g_param_spec_* call ? The docs say it is a newly created
> param_spec, but I don't know if the g_object_class_install_property
> takes ownership over the passed pointer.
g_object_class_install_property() takes ownership of the passed
GParamSpec, so you don't need to unref it.
] [Thread Prev