| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.904 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.904 (after 7.3.893) |
| Problem: Using memory freed by the garbage collector. |
| Solution: Mark items in aucmd_win as used. |
| Files: src/eval.c |
| |
| |
| |
| |
| |
| *** 6792,6797 **** |
| --- 6792,6801 ---- |
| /* window-local variables */ |
| FOR_ALL_TAB_WINDOWS(tp, wp) |
| set_ref_in_item(&wp->w_winvar.di_tv, copyID); |
| + #ifdef FEAT_AUTOCMD |
| + if (aucmd_win != NULL) |
| + set_ref_in_item(&aucmd_win->w_winvar.di_tv, copyID); |
| + #endif |
| |
| #ifdef FEAT_WINDOWS |
| /* tabpage-local variables */ |
| |
| |
| |
| *** 730,731 **** |
| --- 730,733 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 904, |
| /**/ |
| |
| -- |
| Rule #1: Don't give somebody a tool that he's going to hurt himself with. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 /// |