1
0
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:
qarmin
2020-04-15 10:27:57 +02:00
parent 84142f6a5f
commit 943ec79859
4 changed files with 21 additions and 1 deletions

View File

@@ -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);
}
}