Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jul 12, 2018
1 parent 5b1eaa7 commit 3c772c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kitty/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ init_tabstops(bool *tabstops, index_type count) {

static inline bool
init_overlay_line(Screen *self, index_type columns) {
free(self->overlay_line.cpu_cells);
free(self->overlay_line.gpu_cells);
PyMem_Free(self->overlay_line.cpu_cells);
PyMem_Free(self->overlay_line.gpu_cells);
self->overlay_line.cpu_cells = PyMem_Calloc(columns, sizeof(CPUCell));
self->overlay_line.gpu_cells = PyMem_Calloc(columns, sizeof(GPUCell));
if (!self->overlay_line.cpu_cells || !self->overlay_line.gpu_cells) {
Expand Down

0 comments on commit 3c772c3

Please sign in to comment.