diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-13 17:54:45 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-04-15 14:38:22 -0700 |
commit | 6c82906f25abcb0f8ec92bcdaf1872bd8b63ca5d (patch) | |
tree | 8933f667b83e13f70201b36dd848c4198ebafb9c | |
parent | 8ed00bd0a7c44c7fece687e2566d920ea74ef809 (diff) |
Unlock display before returning alloc error in XF86VidModeGetAllModeLines()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/XF86VMode.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 *) ( |