Fix a memory leak when deleting screens
The HistoryBuf object was not being de-allocated
This commit is contained in:
@@ -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);
|
||||||
} // }}}
|
} // }}}
|
||||||
|
|||||||
Reference in New Issue
Block a user