4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
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
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
20 XtAppProcessEvent(XtWidgetToApplicationContext(data->dialog),
21 (XtInputMask)XtIMAll);
23 - XtDestroyWidget(data->dialog);
27 XFreeFont(XtDisplay(data->dialog), data->old);
28 XmFontListFree(data->old_list);
31 gui_motif_synch_fonts();
34 XtAppProcessEvent(XtWidgetToApplicationContext(data->dialog),
35 (XtInputMask)XtIMAll);
39 XFreeFont(XtDisplay(data->dialog), data->old);
40 XmFontListFree(data->old_list);
42 + XtDestroyWidget(data->dialog);
44 gui_motif_synch_fonts();
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
51 { /* Add new patch number below this line */
57 hundred-and-one symptoms of being an internet addict:
58 37. You start looking for hot HTML addresses in public restrooms.
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 ///