update config messages use pointers now to make messages small again

This commit is contained in:
Mitchell Hashimoto
2023-03-19 10:48:42 -07:00
parent e84fb55e2c
commit b0b3b0af2d
8 changed files with 41 additions and 18 deletions

View File

@@ -257,7 +257,8 @@ fn drainMailbox(self: *Thread) !void {
},
.change_config => |config| {
try self.renderer.changeConfig(config);
defer config.alloc.destroy(config.ptr);
try self.renderer.changeConfig(config.ptr);
},
}
}