Re: what happens when I use gtk_widget_destroy??? (singnals)
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Russell Shaw <rjshaw netspace net au>
- Cc: LIST GTK <gtk-app-devel-list gnome org>
- Subject: Re: what happens when I use gtk_widget_destroy??? (singnals)
- Date: Thu, 01 Jul 2004 10:23:54 -0400
Russell Shaw wrote:
[ ... ]
If in a program I create a window several times and I
don't make the disconnect stuff, will it use a lot of
memory or the same signal handler will be used?
Memory is leaked each time.
Wow, that sounded allarming :-/
This is untrue, when your window is destroyed/finalized,
all memory allocated for signal marshalling will be freed.
gobject.c:
g_object_last_unref()
{
/*...*/
g_signal_handlers_destroy (object);
/*...*/
G_OBJECT_GET_CLASS (object)->finalize (object);
/*...*/
}
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]