changeset 2137:dabcabce3f9d v7.2.419

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)
author Bram Moolenaar <bram@zimbu.org>
date Thu, 13 May 2010 16:31:25 +0200
parents 431ebc9412a8
children 78b9d5dce950
files src/gui_motif.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -2917,6 +2917,7 @@ gui_mch_dialog(type, title, message, but
 	    *textfield = NUL;
 	else
 	    vim_strncpy(textfield, p, IOSIZE - 1);
+	XtFree((char *)p);
     }
 
     suppress_dialog_mnemonics(dialogform);
--- 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,