Commit bb08043a authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Screen.c: fix two more memleaks of visuals

parent 213e63ee
...@@ -1349,6 +1349,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, ...@@ -1349,6 +1349,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
if (!pFrameBufferBits) if (!pFrameBufferBits)
{ {
freeDepths(depths, numDepths); freeDepths(depths, numDepths);
free(visuals);
return FALSE; return FALSE;
} }
...@@ -1371,6 +1372,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, ...@@ -1371,6 +1372,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
monitorResolution, monitorResolution, PixmapBytePad(nxagentOption(RootWidth), rootDepth), bitsPerPixel)) monitorResolution, monitorResolution, PixmapBytePad(nxagentOption(RootWidth), rootDepth), bitsPerPixel))
{ {
freeDepths(depths, numDepths); freeDepths(depths, numDepths);
free(visuals);
return FALSE; return FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment