fixes #1366
This commit is contained in:
IntegratedQuantum 2025-04-29 18:14:00 +02:00
parent d49f61e7b5
commit 3780814400

View File

@ -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);