From 6c82906f25abcb0f8ec92bcdaf1872bd8b63ca5d Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 13 Apr 2013 17:54:45 -0700 Subject: Unlock display before returning alloc error in XF86VidModeGetAllModeLines() Signed-off-by: Alan Coopersmith Reviewed-by: Peter Hutterer --- src/XF86VMode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XF86VMode.c b/src/XF86VMode.c index 28c79c1..76276b6 100644 --- a/src/XF86VMode.c +++ b/src/XF86VMode.c @@ -322,6 +322,8 @@ XF86VidModeGetAllModeLines(Display* dpy, int screen, int* modecount, _XEatData(dpy, (rep.modecount) * sizeof(xXF86OldVidModeModeInfo)); else _XEatData(dpy, (rep.modecount) * sizeof(xXF86VidModeModeInfo)); + UnlockDisplay(dpy); + SyncHandle(); return False; } mdinfptr = (XF86VidModeModeInfo *) ( -- cgit v1.2.3