Fix a memory leak when deleting screens
The HistoryBuf object was not being de-allocated
This commit is contained in:
parent
315595aa77
commit
c323e5372c
@ -159,6 +159,7 @@ dealloc(Screen* self) {
|
|||||||
Py_CLEAR(self->main_linebuf);
|
Py_CLEAR(self->main_linebuf);
|
||||||
Py_CLEAR(self->alt_linebuf);
|
Py_CLEAR(self->alt_linebuf);
|
||||||
Py_CLEAR(self->change_tracker);
|
Py_CLEAR(self->change_tracker);
|
||||||
|
Py_CLEAR(self->historybuf);
|
||||||
PyMem_Free(self->main_tabstops);
|
PyMem_Free(self->main_tabstops);
|
||||||
Py_TYPE(self)->tp_free((PyObject*)self);
|
Py_TYPE(self)->tp_free((PyObject*)self);
|
||||||
} // }}}
|
} // }}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user