comparison 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
comparison
equal deleted inserted replaced
2136:431ebc9412a8 2137:dabcabce3f9d
2915 p = (char_u *)XmTextGetString(dialogtextfield); 2915 p = (char_u *)XmTextGetString(dialogtextfield);
2916 if (p == NULL || dialogStatus < 0) 2916 if (p == NULL || dialogStatus < 0)
2917 *textfield = NUL; 2917 *textfield = NUL;
2918 else 2918 else
2919 vim_strncpy(textfield, p, IOSIZE - 1); 2919 vim_strncpy(textfield, p, IOSIZE - 1);
2920 XtFree((char *)p);
2920 } 2921 }
2921 2922
2922 suppress_dialog_mnemonics(dialogform); 2923 suppress_dialog_mnemonics(dialogform);
2923 XtDestroyWidget(dialogform); 2924 XtDestroyWidget(dialogform);
2924 2925