Re: memory leak when destroying widgets
- From: Murray Cumming <murrayc murrayc com>
- To: Dave Foster <dave foster gmail com>
- Cc: gtk-app-devel-list gnome org, Jacques Le Normand <rathereasy gmail com>
- Subject: Re: memory leak when destroying widgets
- Date: Wed, 29 Oct 2008 14:08:05 +0100
On Mon, 2008-10-27 at 16:50 -0400, Dave Foster wrote:
Hi,
On Mon, Oct 27, 2008 at 4:22 PM, Jacques Le Normand <rathereasy gmail com>wrote:
gtk_container_remove(GTK_CONTAINER(vbox),child);
Most likely I am wrong on this, but you solely do a container remove, and
not a delete/free etc on something that was created with entry_new(). I'm
fairly certain that removing from a container does not free the the object,
and you are therefore leaking 400 pointers to entry boxes.
No, GTK+ really does do an unref when you remove something from a
container. We fix/hide this weirdness in gtkmm.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]