fix mem leaks and bad mem allocation

This commit is contained in:
2023-11-26 03:45:07 +02:00
parent 1f810ecedc
commit 750299b0ab
2 changed files with 16 additions and 11 deletions
+2
View File
@@ -110,6 +110,8 @@ int init_x11(Display **display, Window *window, const char* title, int window_wi
glViewport(0, 0, win_attrs.width, win_attrs.height);
resize_x11_window(*display, *window);
XFree(fbc);
return 0;
}