mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
intel-virtual-output: Do not attempt to tidy up the local display if it fails
Just fix the segfault dereferencing the primary display if we bail during its setup. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
@@ -3117,6 +3117,9 @@ static void context_cleanup(struct context *ctx)
|
||||
for (i = 1; i < ctx->ndisplay; i++)
|
||||
display_cleanup(&ctx->display[i]);
|
||||
|
||||
if (dpy == NULL)
|
||||
return;
|
||||
|
||||
res = _XRRGetScreenResourcesCurrent(dpy, ctx->display->root);
|
||||
if (res == NULL)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user