mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
...
This commit is contained in:
parent
564010c7cd
commit
bab4680828
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ new(PyTypeObject *type, PyObject *args, PyObject UNUSED *kwds) {
|
|||
self->buf = PyMem_Calloc(xnum * ynum, sizeof(Cell));
|
||||
self->continued_map = PyMem_Calloc(ynum, sizeof(bool));
|
||||
self->line = alloc_line();
|
||||
if (self->buf == NULL || self->line == NULL || self->continued_map) {
|
||||
if (self->buf == NULL || self->line == NULL || self->continued_map == NULL) {
|
||||
PyErr_NoMemory();
|
||||
PyMem_Free(self->buf); Py_CLEAR(self->line); PyMem_Free(self->continued_map);
|
||||
Py_CLEAR(self);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue