Re: Signal memory leak.
- From: Havoc Pennington <hp redhat com>
- To: gtk-devel-list redhat com
- Cc: kenelson teal ece ucdavis edu
- Subject: Re: Signal memory leak.
- Date: 09 Jan 2000 03:32:52 -0500
Karl Nelson <kenelson@ece.ucdavis.edu> writes:
> cid=gtk_signal_connect_object((GtkObject*)w,"clicked",
> (GtkSignalFunc)Foo,
> (GtkObject*)w2);
You never destroy "w" and you keep adding connections, so it has
continuously increasing memory use (also the speed of
gtk_signal_connect() starts to get really crappy... we seem to have an
O(n) list append in there ;-)
memprof shows no actual leaks, a pointer to all memory is retained.
> gtk_object_sink((GtkObject*)w2);
w2 is destroyed but not w...
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]