Fix source_registry_prune_nodes() algorithm.
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 6 Jun 2012 18:42:12 +0000 (14:42 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 6 Jun 2012 18:42:12 +0000 (14:42 -0400)
commit92696805e189424ca4839d01c5de4f269e9bca5e
treeb6304068114782e21c7c756fe6ff0ec98bf575aa
parentc0c70edbb965d9a03f5d8b020e84820fe0dbb670
Fix source_registry_prune_nodes() algorithm.

Exclude any disabled ESource and its descendants even if some of its
descendants are enabled.  We were also leaking ESource references in
this scenario; use e_source_registry_free_display_tree() to free the
whole subtree rooted at the disabled ESource.
libedataserver/e-source-registry.c