ugrid.c: destroy_cells(): avoid double-free

https://github.com/neovim/neovim/issues/7572#issuecomment-345257295
This commit is contained in:
Justin M. Keyes 2018-01-16 09:26:30 +01:00
parent 1be315de37
commit fed928b438

View File

@ -135,6 +135,7 @@ static void destroy_cells(UGrid *grid)
xfree(grid->cells[i]);
}
xfree(grid->cells);
grid->cells = NULL;
}
}