Patch 7.2.419
Problem:    Memory leak in Motif when clicking on "Search Vim Help".
Solution:   Free string returned by XmTextGetString(). (Dominique Pelle)
Files:      src/gui_motif.c


*** ../vim-7.2.418/src/gui_motif.c      2009-05-21 23:25:38.000000000 +0200
--- src/gui_motif.c     2010-05-13 16:08:14.000000000 +0200
***************
*** 2917,2922 ****
--- 2917,2923 ----
            *textfield = NUL;
        else
            vim_strncpy(textfield, p, IOSIZE - 1);
+       XtFree((char *)p);
      }
  
      suppress_dialog_mnemonics(dialogform);
*** ../vim-7.2.418/src/version.c        2010-05-13 15:40:23.000000000 +0200
--- src/version.c       2010-05-13 16:09:28.000000000 +0200
***************
*** 683,684 ****
--- 683,686 ----
  {   /* Add new patch number below this line */
+ /**/
+     419,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
32. You don't know what sex three of your closest friends are, because they
    have neutral nicknames and you never bothered to ask.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui