lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
b9d77ff
To: vim-dev@vim.org
b9d77ff
Subject: Patch 7.2.319
b9d77ff
Fcc: outbox
b9d77ff
From: Bram Moolenaar <Bram@moolenaar.net>
b9d77ff
Mime-Version: 1.0
b9d77ff
Content-Type: text/plain; charset=UTF-8
b9d77ff
Content-Transfer-Encoding: 8bit
b9d77ff
------------
b9d77ff
b9d77ff
Patch 7.2.319
b9d77ff
Problem:    Motif: accessing freed memory when cancelling font dialog.
b9d77ff
Solution:   Destroy the widget only after accessing it. (Dominique Pelle)
b9d77ff
Files:	    src/gui_xmdlg.c
b9d77ff
b9d77ff
b9d77ff
*** ../vim-7.2.318/src/gui_xmdlg.c	2009-11-03 12:53:44.000000000 +0100
b9d77ff
--- src/gui_xmdlg.c	2009-12-16 18:39:21.000000000 +0100
b9d77ff
***************
b9d77ff
*** 1274,1286 ****
b9d77ff
  	XtAppProcessEvent(XtWidgetToApplicationContext(data->dialog),
b9d77ff
  							(XtInputMask)XtIMAll);
b9d77ff
  
b9d77ff
-     XtDestroyWidget(data->dialog);
b9d77ff
- 
b9d77ff
      if (data->old)
b9d77ff
      {
b9d77ff
  	XFreeFont(XtDisplay(data->dialog),  data->old);
b9d77ff
  	XmFontListFree(data->old_list);
b9d77ff
      }
b9d77ff
  
b9d77ff
      gui_motif_synch_fonts();
b9d77ff
  
b9d77ff
--- 1274,1285 ----
b9d77ff
  	XtAppProcessEvent(XtWidgetToApplicationContext(data->dialog),
b9d77ff
  							(XtInputMask)XtIMAll);
b9d77ff
  
b9d77ff
      if (data->old)
b9d77ff
      {
b9d77ff
  	XFreeFont(XtDisplay(data->dialog),  data->old);
b9d77ff
  	XmFontListFree(data->old_list);
b9d77ff
      }
b9d77ff
+     XtDestroyWidget(data->dialog);
b9d77ff
  
b9d77ff
      gui_motif_synch_fonts();
b9d77ff
  
b9d77ff
*** ../vim-7.2.318/src/version.c	2009-12-16 18:27:29.000000000 +0100
b9d77ff
--- src/version.c	2009-12-16 18:40:06.000000000 +0100
b9d77ff
***************
b9d77ff
*** 683,684 ****
b9d77ff
--- 683,686 ----
b9d77ff
  {   /* Add new patch number below this line */
b9d77ff
+ /**/
b9d77ff
+     319,
b9d77ff
  /**/
b9d77ff
b9d77ff
-- 
b9d77ff
hundred-and-one symptoms of being an internet addict:
b9d77ff
37. You start looking for hot HTML addresses in public restrooms.
b9d77ff
b9d77ff
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
b9d77ff
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
b9d77ff
\\\        download, build and distribute -- http://www.A-A-P.org        ///
b9d77ff
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///