fix(core/linux/X11): double free during deinit

This commit is contained in:
Ronald M Zielaznicki 2024-10-21 00:16:25 -04:00 committed by Stephen Gutekanst
parent 0a5d817f54
commit c6beaa70a8

View file

@ -243,7 +243,6 @@ pub fn deinit(
x11: *X11,
linux: *Linux,
) void {
x11.allocator.destroy(x11.surface_descriptor);
linux.allocator.destroy(x11.surface_descriptor);
for (x11.cursors) |cur| {
if (cur) |_| {