[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: finalize, dispose and destroy
- From: Trent Lloyd <lathiat bur st>
- To: gtk-app-devel-list gnome org
- Subject: Re: finalize, dispose and destroy
- Date: Sat, 6 Mar 2004 19:56:39 +0800
Keep in mind some of these leaks in 'X or GTK+' can often be a result of
you not freeing somethign from a call to these libraries (but obviously
not always)
for example of you call g_strdup_printf("%s", blah); an dpass that
direct to a function rather than storing it in a temporary variable to
free(); it then the memory leak shows up in the glib code, same for
using g_string stuff.
Cheers,
Trent
On Fri, Mar 05, 2004 at 10:15:34PM +0200, Paul Pogonyshev wrote:
> 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
> Paul
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
[ Trent "Lathiat" Lloyd lathi@sixlabs.org ]/ "You sure as hell shouldn't be \
[ tlhIngan Hol Dajatlh'e www.sixlabs.org ]| fingering my toaster" -Linus |
[ GPG Key Id: 0x04AB3C5D www.bur.st ]| Torvalds, LCA2003 Speakers dinner|
[ IPv6 Conference http://conf.sixlabs.org ]\ talking about ipv6 with me /
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]