Otherwise, unreffing the view could cause it to be destroyed, and thus
emptying the hash table will write into freed memory and crash.
g_signal_handlers_unblock_by_func (self,
individual_view_row_expand_or_collapse_cb, GINT_TO_POINTER (TRUE));
- priv->expand_groups_idle_handler = 0;
- g_object_unref (self);
-
/* Empty the table of groups to expand/contract, since it may contain groups
* which no longer exist in the tree view. This can happen after going
* offline, for example. */
g_hash_table_remove_all (priv->expand_groups);
+ priv->expand_groups_idle_handler = 0;
+ g_object_unref (self);
return FALSE;
}