Only detach consumers which are attached when we wither stuff away.

Pointed out by:	pjd
This commit is contained in:
Poul-Henning Kamp 2004-07-09 14:06:17 +00:00
parent 0d4e175d2e
commit 539bec4042
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131877

View File

@ -317,7 +317,8 @@ g_wither_washer()
result |= 1;
continue;
}
g_detach(cp);
if (cp->provider != NULL)
g_detach(cp);
g_destroy_consumer(cp);
result |= 2;
}