mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
- 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:
parent
b67eece82f
commit
62392c89a0
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue