aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-map-view.c
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-04-08 05:51:23 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:52:05 +0800
commit530daa415e81ca3eadfbcc726486e3fdf80f6c1f (patch)
tree60e4e0cd8fca23841b933e5f162f41226a3dcb40 /src/empathy-map-view.c
parent4152e6dc08ea55434558e4b0105ec1df3628c4f8 (diff)
downloadgsoc2013-empathy-530daa415e81ca3eadfbcc726486e3fdf80f6c1f.tar
gsoc2013-empathy-530daa415e81ca3eadfbcc726486e3fdf80f6c1f.tar.gz
gsoc2013-empathy-530daa415e81ca3eadfbcc726486e3fdf80f6c1f.tar.bz2
gsoc2013-empathy-530daa415e81ca3eadfbcc726486e3fdf80f6c1f.tar.lz
gsoc2013-empathy-530daa415e81ca3eadfbcc726486e3fdf80f6c1f.tar.xz
gsoc2013-empathy-530daa415e81ca3eadfbcc726486e3fdf80f6c1f.tar.zst
gsoc2013-empathy-530daa415e81ca3eadfbcc726486e3fdf80f6c1f.zip
Fix a warning if the handle doesn't exist
Diffstat (limited to 'src/empathy-map-view.c')
-rw-r--r--src/empathy-map-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index dd9f00f2a..108e9d929 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -166,8 +166,9 @@ map_view_contacts_foreach_disconnect (GtkTreeModel *model,
return FALSE;
handle_id = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (contact), "map-view-handle"));
+ if (handle_id > 0)
+ g_signal_handler_disconnect (contact, handle_id);
- g_signal_handler_disconnect (contact, handle_id);
return FALSE;
}
@@ -180,6 +181,7 @@ map_view_destroy_cb (GtkWidget *widget,
/* Set up contact list. */
model = GTK_TREE_MODEL (window->list_store);
gtk_tree_model_foreach (model, map_view_contacts_foreach_disconnect, window);
+ g_object_unref (window->list_store);
g_free (window);
}