Re: cleanup data set with g_object_set_data()
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: Olivier Sessink <lists olivier pk wau nl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: cleanup data set with g_object_set_data()
- Date: Sat, 17 Dec 2005 18:03:03 +0100
On Sat, Dec 17, 2005 at 11:45:42AM +0100, Olivier Sessink wrote:
if data is set with g_object_set_data(), is that automatically freed if
the object is unreffed?
No, but you can use g_object_set_data_full() instead and
pass something like g_free as the last argument.
Of course, the function is called when the object is
destroyed, not when it's just unreferenced.
Yeti
--
That's enough.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]