Blame SOURCES/7.4.317

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.317
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.317
22c937
Problem:    Crash when starting gvim.  Issue 230.
22c937
Solution:   Check for a pointer to be NULL. (Christian Brabandt)
22c937
Files:	    src/window.c
22c937
22c937
22c937
*** ../vim-7.4.316/src/window.c	2014-05-28 13:42:59.884078184 +0200
22c937
--- src/window.c	2014-06-12 11:36:53.619441640 +0200
22c937
***************
22c937
*** 4721,4728 ****
22c937
  win_free_lsize(wp)
22c937
      win_T	*wp;
22c937
  {
22c937
!     vim_free(wp->w_lines);
22c937
!     wp->w_lines = NULL;
22c937
  }
22c937
  
22c937
  /*
22c937
--- 4721,4732 ----
22c937
  win_free_lsize(wp)
22c937
      win_T	*wp;
22c937
  {
22c937
!     /* TODO: why would wp be NULL here? */
22c937
!     if (wp != NULL)
22c937
!     {
22c937
! 	vim_free(wp->w_lines);
22c937
! 	wp->w_lines = NULL;
22c937
!     }
22c937
  }
22c937
  
22c937
  /*
22c937
*** ../vim-7.4.316/src/version.c	2014-05-29 14:36:26.156862577 +0200
22c937
--- src/version.c	2014-06-12 11:37:37.907443315 +0200
22c937
***************
22c937
*** 736,737 ****
22c937
--- 736,739 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     317,
22c937
  /**/
22c937
22c937
-- 
22c937
press CTRL-ALT-DEL for more information
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///