mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
vim-patch:7.4.317 #1076
Problem: Crash when starting gvim. Issue 230. Solution: Check for a pointer to be NULL. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=8ffcb546d782
This commit is contained in:
@@ -3730,8 +3730,11 @@ void win_alloc_lines(win_T *wp)
|
||||
*/
|
||||
void win_free_lsize(win_T *wp)
|
||||
{
|
||||
free(wp->w_lines);
|
||||
wp->w_lines = NULL;
|
||||
// TODO: why would wp be NULL here?
|
||||
if (wp != NULL) {
|
||||
free(wp->w_lines);
|
||||
wp->w_lines = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user