Re: GParamSpec and memory allocation.



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.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net



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