Closing XDisp to reduce mem leaks

This commit is contained in:
alphanu1 2020-09-11 16:17:46 +01:00 committed by GitHub
parent 877408adda
commit dc19dd3db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,6 +300,7 @@ static bool x11_display_server_set_resolution(void *data,
}
XRRFreeOutputInfo(outputs);
XRRFreeScreenResources(resources);
XCloseDisplay(dpy);
}
return true;
}
@ -619,6 +620,8 @@ static void x11_display_server_destroy(void *data)
}
}
}
XRRFreeScreenResources(resources);
XCloseDisplay(dpy);
#endif
if (dispserv)