jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.317

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