Destroy providers maked with G_PF_WITHER when the last consumer has detached.

This commit is contained in:
phk 2003-10-12 11:34:35 +00:00
parent de09c7d031
commit d5bd50ee8c

View File

@ -139,6 +139,8 @@ g_orphan_register(struct g_provider *pp)
cp->geom->orphan(cp);
cp = cp2;
}
if (LIST_EMPTY(&pp->consumers) && (pp->flags & G_PF_WITHER))
g_destroy_provider(pp);
#ifdef notyet
cp = LIST_FIRST(&pp->consumers);
if (cp != NULL)