renderer: do not free new configuration on change

Fixes #1271
This commit is contained in:
Mitchell Hashimoto
2024-01-09 21:05:27 -08:00
parent 3a4cd3f8e4
commit fc30fdfb2b

View File

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