fix invalid pointer usage in bezierPatchDeleteList(), bug 11807

This commit is contained in:
Brian 2007-08-02 08:40:58 -06:00
parent 2aa439a6a4
commit 067370e68f

View file

@ -111,8 +111,11 @@ void bezierPatchDelete(bezierPatch *b)
void bezierPatchDeleteList(bezierPatch *b)
{
bezierPatch *temp;
for(temp = b; temp != NULL; temp = temp->next)
bezierPatchDelete(temp);
while (b != NULL) {
temp = b;
b = b->next;
bezierPatchDelete(temp);
}
}
bezierPatch* bezierPatchInsert(bezierPatch *list, bezierPatch *b)