Re: Glade memory leaks?

2015-05-06 Thread Marcus Karlsson
On Wed, May 06, 2015 at 01:01:08PM +0600, Konstantin P. wrote: > Why this causes memory usage increases in htop? > > if (connect_build_object != NULL) { > g_object_unref (G_OBJECT ( connect_build_object )); > object = NULL; > } > connect_build_object = gtk_builder_new(); > > gtk_build

Glade memory leaks?

2015-05-06 Thread Konstantin P.
Why this causes memory usage increases in htop? if (connect_build_object != NULL) { g_object_unref (G_OBJECT ( connect_build_object )); object = NULL; } connect_build_object = gtk_builder_new(); gtk_builder_add_from_file ( connect_build_object, "main_window.ui", NULL ); gtk_build