]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.419 v7.2.419
authorBram Moolenaar <Bram@vim.org>
Thu, 13 May 2010 14:31:25 +0000 (16:31 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 13 May 2010 14:31:25 +0000 (16:31 +0200)
Problem:    Memory leak in Motif when clicking on "Search Vim Help".
Solution:   Free string returned by XmTextGetString(). (Dominique Pelle)

src/gui_motif.c
src/version.c

index 9458e4d7d93476181591b019706a0266e324f47d..1a7e03872cd9e2e96443aecc6bd8f71868c81cf6 100644 (file)
@@ -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);
index f44031f4254d32e6a4869304220a6ebc5a3b2422..345e4c0b18cb69be1c22768a263ef9af636c5d2f 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    419,
 /**/
     418,
 /**/