Re: Some questions about Gobject based classes
- From: "Tristan Van Berkom" <tristan van berkom gmail com>
- To: "Pablo Yanez Trujillo" <yanezp informatik uni-freiburg de>
- Cc: gtk-list gnome org
- Subject: Re: Some questions about Gobject based classes
- Date: Wed, 5 Nov 2008 02:40:53 -0500
On Tue, Nov 4, 2008 at 7:32 PM, Pablo Yanez Trujillo
<yanezp informatik uni-freiburg de> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
'place' and 'title' are GString objects and have to be freed with g_string_free. I don't know where I have to do that.
gtest_medium_get_type looks like:
You need to override the class method for ->finalize(), like you must have
already done for set_property()/get_property().
I think that only dynamic types can free class wide data, I suspect they
are assumed to be referenced from a unloadable library while static
types are not.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]