Re: what happens when I use gtk_widget_destroy??? (singnals)



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]