mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
fix mem leaks
This commit is contained in:
parent
47bd759fc9
commit
eab92fcdc2
2 changed files with 5 additions and 0 deletions
|
|
@ -398,6 +398,7 @@ static void driDestroyDisplay(Display *dpy, void *private)
|
|||
else
|
||||
Drivers = driver->next;
|
||||
|
||||
Xfree(driver->name);
|
||||
Xfree(driver);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -396,6 +396,10 @@ static int __glXFreeDisplayPrivate(XExtData *extension)
|
|||
(*priv->driDisplay.destroyDisplay)(priv->dpy,
|
||||
priv->driDisplay.private);
|
||||
priv->driDisplay.private = NULL;
|
||||
if (priv->driDisplay.createNewScreen) {
|
||||
Xfree(priv->driDisplay.createNewScreen); /* free array of ptrs */
|
||||
priv->driDisplay.createNewScreen = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
Xfree((char*) priv);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue