aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/mi/micmap.c
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2018-02-27 02:56:01 +0100
committerMihai Moldovan <ionic@ionic.de>2018-02-27 02:56:01 +0100
commit3fffa5bd81650ffae994df1158d17c9e1d9410d2 (patch)
tree6cf8e93ad29709867617cb03b89bfbc6356126c5 /nx-X11/programs/Xserver/mi/micmap.c
parenteaae96101dfb2b341c61060e7cf280bf3b9084e0 (diff)
parent7368b45408690620b8a9c051670888b684e44637 (diff)
downloadnx-libs-3fffa5bd81650ffae994df1158d17c9e1d9410d2.tar.gz
nx-libs-3fffa5bd81650ffae994df1158d17c9e1d9410d2.tar.bz2
nx-libs-3fffa5bd81650ffae994df1158d17c9e1d9410d2.zip
Merge branch 'uli42-pr/update_mi' into 3.6.x
Attributes GH PR #650: https://github.com/ArcticaProject/nx-libs/pull/650
Diffstat (limited to 'nx-X11/programs/Xserver/mi/micmap.c')
-rw-r--r--nx-X11/programs/Xserver/mi/micmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/mi/micmap.c b/nx-X11/programs/Xserver/mi/micmap.c
index c01d7d333..3fd016712 100644
--- a/nx-X11/programs/Xserver/mi/micmap.c
+++ b/nx-X11/programs/Xserver/mi/micmap.c
@@ -586,8 +586,10 @@ miDoInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp,
if (nvtype)
{
vid = (VisualID *) malloc (nvtype * sizeof (VisualID));
- if (!vid)
+ if (!vid) {
+ free(preferredCVCs);
return FALSE;
+ }
}
depth->depth = d;
depth->numVids = nvtype;