diff src/gui_motif.c @ 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 fc89a4f98a8b
children cccb71c2c5c1
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);