0
0
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:
Bram Moolenaar 2014-06-12 11:49:46 +02:00
parent 7116aa0f7d
commit 06e4a6df0a
2 changed files with 8 additions and 2 deletions

View File

@ -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,
/**/ /**/

View File

@ -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;
}
} }
/* /*