Re: GTK free function doesn't appear to have any affect.
- From: Andrew Potter <agpotter gmail com>
- To: dE <de techno gmail com>
- Cc: GTK Devel List <gtk-app-devel-list gnome org>
- Subject: Re: GTK free function doesn't appear to have any affect.
- Date: Fri, 14 Jun 2013 00:54:10 -0700
On Fri, Jun 14, 2013 at 12:27 AM, dE <de techno gmail com> wrote:
I was monitoring the memory usage before and after execution of
g_object_unref and gtk_list_store_clear, and it didnt change the memory
usage by a bit.
Is this normal (am I doing it right?)?
e.g. --
gtk_list_store_clear (store);
g_object_unref( G_OBJECT (store) );
g_object_unref ( G_OBJECT ( col_renderer [j] ));
Do you have a treeview that is internally holding a reference to the list store?
I don't know about the GtkBuilder structures.
Also, g_new uses g_slice internally sometimes, and that will do things
like try to cache pages I think. Be sure to set the G_SLICE
environment variable to always-malloc when monitoring your memory
usage. See [1]
[1] https://developer.gnome.org/glib/2.36/glib-running.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]