mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Fix a memory leak when deleting screens
The HistoryBuf object was not being de-allocated
This commit is contained in:
parent
315595aa77
commit
c323e5372c
1 changed files with 1 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ dealloc(Screen* self) {
|
|||
Py_CLEAR(self->main_linebuf);
|
||||
Py_CLEAR(self->alt_linebuf);
|
||||
Py_CLEAR(self->change_tracker);
|
||||
Py_CLEAR(self->historybuf);
|
||||
PyMem_Free(self->main_tabstops);
|
||||
Py_TYPE(self)->tp_free((PyObject*)self);
|
||||
} // }}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue