On Fri, Jun 14, 2013 at 12:27 AM, dE <de.tec...@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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to