mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
fix mem leak (free psc->visuals)
This commit is contained in:
parent
145f5f60f1
commit
fb36a54a1c
1 changed files with 6 additions and 3 deletions
|
|
@ -156,12 +156,15 @@ static void FreeScreenConfigs(__GLXdisplayPrivate *priv)
|
|||
for (i = 0; i < screens; i++, psc++) {
|
||||
if (psc->configs) {
|
||||
_gl_context_modes_destroy( psc->configs );
|
||||
if(psc->effectiveGLXexts)
|
||||
if (psc->effectiveGLXexts)
|
||||
Xfree(psc->effectiveGLXexts);
|
||||
|
||||
psc->configs = NULL; /* NOTE: just for paranoia */
|
||||
}
|
||||
Xfree((char*) psc->serverGLXexts);
|
||||
if (psc->visuals) {
|
||||
_gl_context_modes_destroy( psc->visuals );
|
||||
psc->visuals = NULL; /* NOTE: just for paranoia */
|
||||
}
|
||||
Xfree((char*) psc->serverGLXexts);
|
||||
|
||||
#ifdef GLX_DIRECT_RENDERING
|
||||
if (psc->driScreen) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue