6ff255b
To: vim-dev@vim.org
6ff255b
Subject: Patch 7.2.037
6ff255b
Fcc: outbox
6ff255b
From: Bram Moolenaar <Bram@moolenaar.net>
6ff255b
Mime-Version: 1.0
6ff255b
Content-Type: text/plain; charset=ISO-8859-1
6ff255b
Content-Transfer-Encoding: 8bit
6ff255b
------------
6ff255b
6ff255b
Patch 7.2.037
6ff255b
Problem:    Double free with GTK 1 and compiled with EXITFREE.
6ff255b
Solution:   Don't close display. (Dominique Pelle)
6ff255b
Files:	    src/os_unix.c
6ff255b
6ff255b
6ff255b
*** ../vim-7.2.036/src/os_unix.c	Wed Nov 12 13:07:48 2008
6ff255b
--- src/os_unix.c	Wed Nov 12 11:55:33 2008
6ff255b
***************
6ff255b
*** 2936,2942 ****
6ff255b
      }
6ff255b
  #  endif
6ff255b
  # endif
6ff255b
! # ifdef FEAT_X11
6ff255b
      if (x11_display != NULL
6ff255b
  #  ifdef FEAT_XCLIPBOARD
6ff255b
  	    && x11_display != xterm_dpy
6ff255b
--- 2936,2943 ----
6ff255b
      }
6ff255b
  #  endif
6ff255b
  # endif
6ff255b
!     /* Don't close the display for GTK 1, it is done in exit(). */
6ff255b
! # if defined(FEAT_X11) && (!defined(FEAT_GUI_GTK) || defined(HAVE_GTK2))
6ff255b
      if (x11_display != NULL
6ff255b
  #  ifdef FEAT_XCLIPBOARD
6ff255b
  	    && x11_display != xterm_dpy
6ff255b
*** ../vim-7.2.036/src/version.c	Wed Nov 12 13:35:31 2008
6ff255b
--- src/version.c	Wed Nov 12 14:08:56 2008
6ff255b
***************
6ff255b
*** 678,679 ****
6ff255b
--- 678,681 ----
6ff255b
  {   /* Add new patch number below this line */
6ff255b
+ /**/
6ff255b
+     37,
6ff255b
  /**/
6ff255b
6ff255b
-- 
6ff255b
hundred-and-one symptoms of being an internet addict:
6ff255b
240. You think Webster's Dictionary is a directory of WEB sites.
6ff255b
6ff255b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
6ff255b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
6ff255b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
6ff255b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///