Fix seg faults

This commit is contained in:
alphanu1 2020-09-11 18:54:17 +01:00 committed by GitHub
parent 897ea6aff3
commit cb404b676d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,7 +279,6 @@ static bool x11_display_server_set_resolution(void *data,
} }
XRRFreeScreenResources(resources); XRRFreeScreenResources(resources);
XRRFreeScreenResources(res);
XCloseDisplay(dpy); XCloseDisplay(dpy);
} }
else if (monitor_index != 20) else if (monitor_index != 20)
@ -306,7 +305,6 @@ static bool x11_display_server_set_resolution(void *data,
} }
XRRFreeOutputInfo(outputs); XRRFreeOutputInfo(outputs);
XRRFreeScreenResources(resources); XRRFreeScreenResources(resources);
XRRFreeScreenResources(res);
XCloseDisplay(dpy); XCloseDisplay(dpy);
} }
return true; return true;
@ -579,9 +577,7 @@ static void x11_display_server_destroy(void *data)
XRRFreeOutputInfo(outputs); XRRFreeOutputInfo(outputs);
} }
XRRFreeScreenResources(resources);
XRRFreeScreenResources(res);
XCloseDisplay(dpy);
} }
else if (g_monitor_index != 20) else if (g_monitor_index != 20)
@ -608,9 +604,7 @@ static void x11_display_server_destroy(void *data)
} }
XRRFreeOutputInfo(outputs); XRRFreeOutputInfo(outputs);
XRRFreeScreenResources(resources);
XRRFreeScreenResources(res);
XCloseDisplay(dpy);
} }