Patch 7.4.2129
Problem: Memory leak when using timer_start(). (Dominique Pelle)
Solution: Don't copy the callback when using a partial.
Files: src/evalfunc.c
*** ../vim-7.4.2128/src/evalfunc.c 2016-07-29 22:50:31.851971861 +0200
--- src/evalfunc.c 2016-07-30 22:21:09.321502571 +0200
***************
*** 11931,11937 ****
}
else
{
! timer->tr_callback = vim_strsave(callback);
rettv->vval.v_number = timer->tr_id;
}
}
--- 11931,11941 ----
}
else
{
! if (timer->tr_partial == NULL)
! timer->tr_callback = vim_strsave(callback);
! else
! /* pointer into the partial */
! timer->tr_callback = callback;
rettv->vval.v_number = timer->tr_id;
}
}
*** ../vim-7.4.2128/src/version.c 2016-07-30 21:48:53.979565539 +0200
--- src/version.c 2016-07-30 22:31:44.723549625 +0200
***************
*** 765,766 ****
--- 765,768 ----
{ /* Add new patch number below this line */
+ /**/
+ 2129,
/**/
--
Living on Earth includes an annual free trip around the Sun.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.