diff options
Diffstat (limited to 'xorg-server/mi/micmap.c')
-rw-r--r-- | xorg-server/mi/micmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xorg-server/mi/micmap.c b/xorg-server/mi/micmap.c index a92d4fd6d..ca87a8f20 100644 --- a/xorg-server/mi/micmap.c +++ b/xorg-server/mi/micmap.c @@ -575,6 +575,8 @@ miInitVisuals(VisualPtr *visualp, DepthPtr *depthp, int *nvisualp, {
vid = malloc(nvtype * sizeof (VisualID));
if (!vid) {
+ free(depth);
+ free(visual);
free(preferredCVCs);
return FALSE;
}
|