mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Fix seg faults
This commit is contained in:
parent
897ea6aff3
commit
cb404b676d
@ -279,7 +279,6 @@ static bool x11_display_server_set_resolution(void *data,
|
||||
}
|
||||
|
||||
XRRFreeScreenResources(resources);
|
||||
XRRFreeScreenResources(res);
|
||||
XCloseDisplay(dpy);
|
||||
}
|
||||
else if (monitor_index != 20)
|
||||
@ -306,7 +305,6 @@ static bool x11_display_server_set_resolution(void *data,
|
||||
}
|
||||
XRRFreeOutputInfo(outputs);
|
||||
XRRFreeScreenResources(resources);
|
||||
XRRFreeScreenResources(res);
|
||||
XCloseDisplay(dpy);
|
||||
}
|
||||
return true;
|
||||
@ -579,9 +577,7 @@ static void x11_display_server_destroy(void *data)
|
||||
XRRFreeOutputInfo(outputs);
|
||||
}
|
||||
|
||||
XRRFreeScreenResources(resources);
|
||||
XRRFreeScreenResources(res);
|
||||
XCloseDisplay(dpy);
|
||||
|
||||
|
||||
}
|
||||
else if (g_monitor_index != 20)
|
||||
@ -608,9 +604,7 @@ static void x11_display_server_destroy(void *data)
|
||||
}
|
||||
|
||||
XRRFreeOutputInfo(outputs);
|
||||
XRRFreeScreenResources(resources);
|
||||
XRRFreeScreenResources(res);
|
||||
XCloseDisplay(dpy);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user