- avoid losing pointer to the next bezier patch while freeing the current one (CID 1298)

svn path=/trunk/; revision=37514
This commit is contained in:
Kamil Hornicek 2008-11-21 15:01:01 +00:00
parent b67eece82f
commit 62392c89a0

View file

@ -111,8 +111,13 @@ 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->next;
bezierPatchDelete(b);
b = temp;
}
}
bezierPatch* bezierPatchInsert(bezierPatch *list, bezierPatch *b)