mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
fix invalid pointer usage in bezierPatchDeleteList(), bug 11807
This commit is contained in:
parent
2aa439a6a4
commit
067370e68f
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue