diff options
author | Mihai Moldovan <ionic@ionic.de> | 2018-02-27 02:56:01 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2018-02-27 02:56:01 +0100 |
commit | 3fffa5bd81650ffae994df1158d17c9e1d9410d2 (patch) | |
tree | 6cf8e93ad29709867617cb03b89bfbc6356126c5 /nx-X11/programs/Xserver/mi/micmap.c | |
parent | eaae96101dfb2b341c61060e7cf280bf3b9084e0 (diff) | |
parent | 7368b45408690620b8a9c051670888b684e44637 (diff) | |
download | nx-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.c | 4 |
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; |