Re: what happens when I use gtk_widget_destroy??? (singnals)
- From: 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: Fri, 02 Jul 2004 00:05:58 +1000
Murilo Tuvani wrote:
I've seen in this list a long time ago something about
this topic but I didb't understant it very well.
what happens when I use gtk_widget_destroy???
Malloc'd memory on its creation is freed, and any child
widgets are freed.
BETTER, do I have to make
g_signal_handler_disconnect() to all the singals in
window when I make a gtk_widget_destroy with a window
or it will disconnect automaticly??
It should be okay if you don't disconnect, as long as
you don't try to use a freed pointer.
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]