4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Using freed memory in Motif GUI version when making a choice.
12 Solution: Free memory only after using it. (Dominique Pelle)
13 Files: src/gui_xmdlg.c
16 *** ../vim-7.2.270/src/gui_xmdlg.c 2009-05-21 23:25:38.000000000 +0200
17 --- src/gui_xmdlg.c 2009-10-28 21:56:15.000000000 +0100
21 * (C) 2001,2005 by Marcin Dalecki <martin@dalecki.de>
23 ! * Implementation of dialogue functions for the Motif GUI variant.
25 * Note about Lesstif: Apparently lesstif doesn't get the widget layout right,
26 * when using a dynamic scrollbar policy.
29 * (C) 2001,2005 by Marcin Dalecki <martin@dalecki.de>
31 ! * Implementation of dialog functions for the Motif GUI variant.
33 * Note about Lesstif: Apparently lesstif doesn't get the widget layout right,
34 * when using a dynamic scrollbar policy.
37 data->sel[which] = XtNewString(sel);
40 - XtFree(data->sel[which]);
41 if (!strcmp(data->sel[which], sel))
43 /* unselecting current selection */
44 data->sel[which] = NULL;
46 XmListDeselectItem(w, call_data->item);
49 data->sel[which] = XtNewString(sel);
54 data->sel[which] = XtNewString(sel);
57 if (!strcmp(data->sel[which], sel))
59 /* unselecting current selection */
60 + XtFree(data->sel[which]);
61 data->sel[which] = NULL;
63 XmListDeselectItem(w, call_data->item);
67 + XtFree(data->sel[which]);
68 data->sel[which] = XtNewString(sel);
73 *** ../vim-7.2.270/src/version.c 2009-11-03 12:38:50.000000000 +0100
74 --- src/version.c 2009-11-03 12:48:26.000000000 +0100
78 { /* Add new patch number below this line */
84 ROBIN: (warily) And if you get a question wrong?
85 ARTHUR: You are cast into the Gorge of Eternal Peril.
87 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
89 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
90 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
91 \\\ download, build and distribute -- http://www.A-A-P.org ///
92 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///