You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fixes leaks in ResourceCache, Vulkan and X11
This commit is contained in:
@@ -1471,8 +1471,11 @@ DisplayServer::WindowMode DisplayServerX11::window_get_mode(WindowID p_window) c
|
||||
|
||||
if (result == Success && data) {
|
||||
long *state = (long *)data;
|
||||
if (state[0] == WM_IconicState)
|
||||
if (state[0] == WM_IconicState) {
|
||||
XFree(data);
|
||||
return WINDOW_MODE_MINIMIZED;
|
||||
}
|
||||
XFree(data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user