mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
parent
d49f61e7b5
commit
3780814400
@ -461,9 +461,10 @@ pub const Tool = struct { // MARK: Tool
|
||||
}
|
||||
|
||||
pub fn deinit(self: *const Tool) void {
|
||||
if(self.texture) |texture| {
|
||||
texture.deinit();
|
||||
}
|
||||
// TODO: This is leaking textures!
|
||||
//if(self.texture) |texture| {
|
||||
//texture.deinit();
|
||||
//}
|
||||
self.image.deinit(main.globalAllocator);
|
||||
self.tooltip.deinit();
|
||||
main.globalAllocator.free(self.modifiers);
|
||||
|
Loading…
x
Reference in New Issue
Block a user