Blame SOURCES/7.4.317

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