[grisbi-devel] [PATCH 5/5] Fix large (but rare) memory leak gsb_select_icon_fill_icon_view()
RĂ©mi Cardona
remi at gentoo.org
Tue Apr 9 07:56:03 CEST 2013
The leak only happens when changing an account's icon. The list store is
leaked and all the GdkPixbufs attached to it.
---
src/gsb_select_icon.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gsb_select_icon.c b/src/gsb_select_icon.c
index 509e88d..d84e691 100644
--- a/src/gsb_select_icon.c
+++ b/src/gsb_select_icon.c
@@ -368,6 +368,7 @@ GtkTreePath * gsb_select_icon_fill_icon_view ( gchar * name_icon )
i++;
}
gtk_icon_view_set_model (GTK_ICON_VIEW ( icon_view ), GTK_TREE_MODEL (store));
+ g_object_unref ( G_OBJECT ( store ) );
g_dir_close ( dir );
}
else
--
1.8.1.4
More information about the devel
mailing list