[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Question about properties in GObject
- From: Stefan Kost <ensonic hora-obscura de>
- To: Tomasz Jankowski <tomcioj gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Question about properties in GObject
- Date: Sun, 04 Feb 2007 14:42:27 +0200
hi Thomas,
Tomasz Jankowski wrote:
> Hi!
>
> I have short question. I installed G_TYPE_STRING property in my object. Will
> it free allocated memory when object will be destroyed or i should do it on
> my own?
you needs to do the ressource management yourself. That is whenever one sets the
string, free the old value and also free when you destroy the object. Same goes
for G_TYPE_OBJECT properties - there you need to unref old ones.
Stefan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]