mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +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(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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user