]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.319
- new
[packages/vim.git] / 7.2.319
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.319
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.2.319
11 Problem:    Motif: accessing freed memory when cancelling font dialog.
12 Solution:   Destroy the widget only after accessing it. (Dominique Pelle)
13 Files:      src/gui_xmdlg.c
14
15
16 *** ../vim-7.2.318/src/gui_xmdlg.c      2009-11-03 12:53:44.000000000 +0100
17 --- src/gui_xmdlg.c     2009-12-16 18:39:21.000000000 +0100
18 ***************
19 *** 1274,1286 ****
20         XtAppProcessEvent(XtWidgetToApplicationContext(data->dialog),
21                                                         (XtInputMask)XtIMAll);
22   
23 -     XtDestroyWidget(data->dialog);
24
25       if (data->old)
26       {
27         XFreeFont(XtDisplay(data->dialog),  data->old);
28         XmFontListFree(data->old_list);
29       }
30   
31       gui_motif_synch_fonts();
32   
33 --- 1274,1285 ----
34         XtAppProcessEvent(XtWidgetToApplicationContext(data->dialog),
35                                                         (XtInputMask)XtIMAll);
36   
37       if (data->old)
38       {
39         XFreeFont(XtDisplay(data->dialog),  data->old);
40         XmFontListFree(data->old_list);
41       }
42 +     XtDestroyWidget(data->dialog);
43   
44       gui_motif_synch_fonts();
45   
46 *** ../vim-7.2.318/src/version.c        2009-12-16 18:27:29.000000000 +0100
47 --- src/version.c       2009-12-16 18:40:06.000000000 +0100
48 ***************
49 *** 683,684 ****
50 --- 683,686 ----
51   {   /* Add new patch number below this line */
52 + /**/
53 +     319,
54   /**/
55
56 -- 
57 hundred-and-one symptoms of being an internet addict:
58 37. You start looking for hot HTML addresses in public restrooms.
59
60  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
61 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
62 \\\        download, build and distribute -- http://www.A-A-P.org        ///
63  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.031914 seconds and 3 git commands to generate.