mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
callling XCloseDisplay causes coredump: remove call
This commit is contained in:
@@ -49,9 +49,12 @@ static void get_X11_Display(X11_Window_t * X11, char *display_name) {
|
||||
}
|
||||
|
||||
static int free_X11_Display(X11_Window_t *X11) {
|
||||
if (X11->display) {
|
||||
XCloseDisplay(X11->display);
|
||||
X11->display = NULL;
|
||||
X11->window = (Window) NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static Window enum_windows(const char * str, Display * display, Window window, int depth) {
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user