Re: GParamSpec and memory allocation.

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

 



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

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux