mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +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:
@@ -278,7 +278,7 @@ static int included_patches[] = {
|
|||||||
//320,
|
//320,
|
||||||
//319 NA
|
//319 NA
|
||||||
318,
|
318,
|
||||||
//317,
|
317,
|
||||||
//316 NA
|
//316 NA
|
||||||
315,
|
315,
|
||||||
314,
|
314,
|
||||||
|
@@ -3730,8 +3730,11 @@ void win_alloc_lines(win_T *wp)
|
|||||||
*/
|
*/
|
||||||
void win_free_lsize(win_T *wp)
|
void win_free_lsize(win_T *wp)
|
||||||
{
|
{
|
||||||
free(wp->w_lines);
|
// TODO: why would wp be NULL here?
|
||||||
wp->w_lines = NULL;
|
if (wp != NULL) {
|
||||||
|
free(wp->w_lines);
|
||||||
|
wp->w_lines = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user