finalize, dispose and destroy
- From: Paul Pogonyshev <pogonyshev gmx net>
- To: gtk-app-devel-list gnome org
- Subject: finalize, dispose and destroy
- Date: Fri, 5 Mar 2004 22:15:34 +0200
Can anyone explain (point to explanation) the difference between these
three methods? I.e., when implementing a new widget, where do I put
freeing of which resources? It seems that a single widget can catch
`destroy' signal more than once. Is this true for finalize/dispose?
Also is there a nice way to watch for memory leaks under GTK+?
Valgrind seems to report many leaks that originate not in my program,
but in X or GTK+.
Thanks in advance
] [Thread Prev