mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.317
Problem: Crash when starting gvim. Issue 230. Solution: Check for a pointer to be NULL. (Christian Brabandt)
This commit is contained in:
parent
7116aa0f7d
commit
06e4a6df0a
@ -734,6 +734,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
317,
|
||||||
/**/
|
/**/
|
||||||
316,
|
316,
|
||||||
/**/
|
/**/
|
||||||
|
@ -4721,8 +4721,12 @@ win_alloc_lines(wp)
|
|||||||
win_free_lsize(wp)
|
win_free_lsize(wp)
|
||||||
win_T *wp;
|
win_T *wp;
|
||||||
{
|
{
|
||||||
vim_free(wp->w_lines);
|
/* TODO: why would wp be NULL here? */
|
||||||
wp->w_lines = NULL;
|
if (wp != NULL)
|
||||||
|
{
|
||||||
|
vim_free(wp->w_lines);
|
||||||
|
wp->w_lines = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user