fix: add missing renderer deinit() on exit

This commit is contained in:
CJ van den Berg 2024-05-17 21:18:54 +02:00
parent 444b064259
commit 6225944a7e
2 changed files with 2 additions and 3 deletions

View file

@ -147,7 +147,6 @@ fn init_delayed(self: *Self) tp.result {
fn deinit(self: *Self) void {
if (self.input_mode) |*m| m.deinit();
self.commands.deinit();
self.fd_stdin.deinit();
self.mainview.deinit(self.a);
self.message_filters.deinit();
self.input_listeners.deinit();
@ -156,6 +155,8 @@ fn deinit(self: *Self) void {
if (self.sigwinch_signal) |sig| sig.deinit();
self.frame_clock.deinit();
self.rdr.stop();
self.rdr.deinit();
self.fd_stdin.deinit();
self.logger.deinit();
self.a.destroy(self);
}