mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-08 03:29:48 -04:00
Double free reported in GUI code (#1191)
* Fix double free * Update src/gui/windows/delete_world_confirmation.zig
This commit is contained in:
parent
0472091d7c
commit
18dbcc4d4f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user