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