Fix a memory leak when deleting screens

The HistoryBuf object was not being de-allocated
This commit is contained in:
Kovid Goyal 2016-12-18 14:04:42 +05:30
parent 315595aa77
commit c323e5372c

View File

@ -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);
} // }}} } // }}}