mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Closing XDisp to reduce mem leaks
This commit is contained in:
parent
877408adda
commit
dc19dd3db4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user