handle case where value has acquired more than one resource in resetFrame

This commit is contained in:
Joel Dice 2011-03-28 08:54:37 -06:00
parent 3e92f18ab0
commit 572f2d81eb

View File

@ -5554,10 +5554,8 @@ resetFrame(Context* c, Event* e)
clearSites(c, el.value);
}
for (Resource* r = c->acquiredResources; r;) {
Resource* next = r->nextAcquired;
clearSites(c, r->value);
r = next;
while (c->acquiredResources) {
clearSites(c, c->acquiredResources->value);
}
}