summaryrefslogtreecommitdiffstats
path: root/src/gui_motif.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-13 16:31:25 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-13 16:31:25 +0200
commit103e6efc8488eaafa0e3fdc94b52a38687dbfe5c (patch)
treeb2ad22b8a9a5c1ab00c52b57e9901aa90c7d0c77 /src/gui_motif.c
parentccbab93b42973b236b6c83513b347adbd4215245 (diff)
updated for version 7.2.419v7.2.419
Problem: Memory leak in Motif when clicking on "Search Vim Help". Solution: Free string returned by XmTextGetString(). (Dominique Pelle)
Diffstat (limited to 'src/gui_motif.c')
-rw-r--r--src/gui_motif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui_motif.c b/src/gui_motif.c
index 9458e4d7d9..1a7e03872c 100644
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -2917,6 +2917,7 @@ gui_mch_dialog(type, title, message, button_names, dfltbutton, textfield)
*textfield = NUL;
else
vim_strncpy(textfield, p, IOSIZE - 1);
+ XtFree((char *)p);
}
suppress_dialog_mnemonics(dialogform);