Double free reported in GUI code (#1191)

* Fix double free

* Update src/gui/windows/delete_world_confirmation.zig
This commit is contained in:
Krzysztof Wiśniewski 2025-03-11 20:32:15 +01:00 committed by GitHub
parent 0472091d7c
commit 18dbcc4d4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,10 @@ const padding: f32 = 8;
var deleteWorldName: []const u8 = "";
pub fn init() void {
deleteWorldName = "";
}
pub fn deinit() void {
main.globalAllocator.free(deleteWorldName);
}