aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-20 01:29:21 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-06-22 11:30:47 +0200
commitbb08043a65ba7e600fafaa3c703915fcb8ad79d4 (patch)
treebd3a3f44c0e9fe77fc628dfb572ae6cb4611a48a /nx-X11
parent213e63eed7f808633dc865af94a9ea4ee703f228 (diff)
downloadnx-libs-bb08043a65ba7e600fafaa3c703915fcb8ad79d4.tar.gz
nx-libs-bb08043a65ba7e600fafaa3c703915fcb8ad79d4.tar.bz2
nx-libs-bb08043a65ba7e600fafaa3c703915fcb8ad79d4.zip
Screen.c: fix two more memleaks of visuals
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c2
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;
}