diff options
author | Bram Moolenaar <bram@zimbu.org> | 2010-05-13 16:31:25 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@zimbu.org> | 2010-05-13 16:31:25 +0200 |
commit | 78e2b3f7c7aaa9ad66e2ca67839b38c851932ff6 (patch) | |
tree | 1ffc5cd2f913532a7093b78550bc164073252f68 | |
parent | a91e3ea5c3ff8b6609eb269ed541829b60f6a663 (diff) | |
download | vim-78e2b3f7c7aaa9ad66e2ca67839b38c851932ff6.tar.gz |
Problem: Memory leak in Motif when clicking on "Search Vim Help".
Solution: Free string returned by XmTextGetString(). (Dominique Pelle)
-rw-r--r-- | src/gui_motif.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_motif.c b/src/gui_motif.c index 9458e4d7..1a7e0387 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); diff --git a/src/version.c b/src/version.c index f44031f4..345e4c0b 100644 --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 419, +/**/ 418, /**/ 417, |