diff options
-rw-r--r-- | libempathy-gtk/empathy-contact-list-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index a0e890282..184b3e877 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -1309,6 +1309,9 @@ contact_list_view_expand_idle_cb (gpointer user_data) GINT_TO_POINTER (data->expand)); path = gtk_tree_row_reference_get_path (data->row_ref); + if (path == NULL) + goto done; + if (data->expand) { gtk_tree_view_expand_row (GTK_TREE_VIEW (data->view), path, TRUE); @@ -1321,6 +1324,7 @@ contact_list_view_expand_idle_cb (gpointer user_data) contact_list_view_row_expand_or_collapse_cb, GINT_TO_POINTER (data->expand)); +done: g_object_unref (data->view); gtk_tree_row_reference_free (data->row_ref); g_slice_free (ExpandData, data); |