[totem] grilo: Fix warning on exit
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Fix warning on exit
- Date: Mon, 16 Dec 2013 08:05:05 +0000 (UTC)
commit e775471de234d9ff5b5ada9b0eb77bd715485f39
Author: Bastien Nocera <hadess hadess net>
Date: Sat Dec 14 00:18:18 2013 +0100
grilo: Fix warning on exit
Make sure the filter model is unref'ed before the model it
filters is. It doesn't like filtering models without a root.
src/plugins/grilo/totem-grilo.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index a997c55..a7baae6 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -1364,6 +1364,8 @@ impl_deactivate (PeasActivatable *plugin)
totem_grilo_clear_icons ();
/* Empty results */
+ gd_main_view_set_model (GD_MAIN_VIEW (self->priv->browser), NULL);
+ g_clear_object (&self->priv->browser_filter_model);
gtk_tree_store_clear (GTK_TREE_STORE (self->priv->browser_model));
gtk_tree_store_clear (GTK_TREE_STORE (self->priv->search_results_model));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]