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:
Justin M. Keyes 2014-08-17 21:12:53 +00:00
parent e1c330a486
commit 95efb3624b
2 changed files with 6 additions and 3 deletions

View File

@ -278,7 +278,7 @@ static int included_patches[] = {
//320,
//319 NA
318,
//317,
317,
//316 NA
315,
314,

View File

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