commit | 103e6efc8488eaafa0e3fdc94b52a38687dbfe5c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu May 13 16:31:25 2010 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu May 13 16:31:25 2010 +0200 |
tree | b2ad22b8a9a5c1ab00c52b57e9901aa90c7d0c77 | |
parent | ccbab93b42973b236b6c83513b347adbd4215245 [diff] [blame] |
updated for version 7.2.419 Problem: Memory leak in Motif when clicking on "Search Vim Help". Solution: Free string returned by XmTextGetString(). (Dominique Pelle)
diff --git a/src/gui_motif.c b/src/gui_motif.c index 9458e4d..1a7e038 100644 --- a/src/gui_motif.c +++ b/src/gui_motif.c
@@ -2917,6 +2917,7 @@ *textfield = NUL; else vim_strncpy(textfield, p, IOSIZE - 1); + XtFree((char *)p); } suppress_dialog_mnemonics(dialogform);