mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
e1c330a486
commit
95efb3624b
@ -278,7 +278,7 @@ static int included_patches[] = {
|
||||
//320,
|
||||
//319 NA
|
||||
318,
|
||||
//317,
|
||||
317,
|
||||
//316 NA
|
||||
315,
|
||||
314,
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user