diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-20 01:29:21 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-06-22 11:30:47 +0200 |
commit | bb08043a65ba7e600fafaa3c703915fcb8ad79d4 (patch) | |
tree | bd3a3f44c0e9fe77fc628dfb572ae6cb4611a48a | |
parent | 213e63eed7f808633dc865af94a9ea4ee703f228 (diff) | |
download | nx-libs-bb08043a65ba7e600fafaa3c703915fcb8ad79d4.tar.gz nx-libs-bb08043a65ba7e600fafaa3c703915fcb8ad79d4.tar.bz2 nx-libs-bb08043a65ba7e600fafaa3c703915fcb8ad79d4.zip |
Screen.c: fix two more memleaks of visuals
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c index 67151733f..6ec4b245f 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c @@ -1349,6 +1349,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, if (!pFrameBufferBits) { freeDepths(depths, numDepths); + free(visuals); return FALSE; } @@ -1371,6 +1372,7 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, monitorResolution, monitorResolution, PixmapBytePad(nxagentOption(RootWidth), rootDepth), bitsPerPixel)) { freeDepths(depths, numDepths); + free(visuals); return FALSE; } |