mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
progs/xdemos: Fix memory leak in pbdemo.c.
(cherry picked from commit e0857962b9)
This commit is contained in:
parent
ba3fedf246
commit
4bf96ebdae
1 changed files with 1 additions and 0 deletions
|
|
@ -131,6 +131,7 @@ MakePbuffer( Display *dpy, int screen, int width, int height )
|
|||
fbConfigs = ChooseFBConfig(dpy, screen, fbAttribs[attempt], &nConfigs);
|
||||
if (nConfigs==0 || !fbConfigs) {
|
||||
printf("Note: glXChooseFBConfig(%s) failed\n", fbString[attempt]);
|
||||
XFree(fbConfigs);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue