Mercurial > vim
comparison src/eval.c @ 4309:bdab73bf24a8 v7.3.904
updated for version 7.3.904
Problem: Using memory freed by the garbage collector.
Solution: Mark items in aucmd_win as used.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 15 Apr 2013 18:25:59 +0200 |
parents | aca1886102bd |
children | f1eab4f77a6f |
comparison
equal
deleted
inserted
replaced
4308:1afb71cd1663 | 4309:bdab73bf24a8 |
---|---|
6790 set_ref_in_item(&buf->b_bufvar.di_tv, copyID); | 6790 set_ref_in_item(&buf->b_bufvar.di_tv, copyID); |
6791 | 6791 |
6792 /* window-local variables */ | 6792 /* window-local variables */ |
6793 FOR_ALL_TAB_WINDOWS(tp, wp) | 6793 FOR_ALL_TAB_WINDOWS(tp, wp) |
6794 set_ref_in_item(&wp->w_winvar.di_tv, copyID); | 6794 set_ref_in_item(&wp->w_winvar.di_tv, copyID); |
6795 #ifdef FEAT_AUTOCMD | |
6796 if (aucmd_win != NULL) | |
6797 set_ref_in_item(&aucmd_win->w_winvar.di_tv, copyID); | |
6798 #endif | |
6795 | 6799 |
6796 #ifdef FEAT_WINDOWS | 6800 #ifdef FEAT_WINDOWS |
6797 /* tabpage-local variables */ | 6801 /* tabpage-local variables */ |
6798 for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) | 6802 for (tp = first_tabpage; tp != NULL; tp = tp->tp_next) |
6799 set_ref_in_item(&tp->tp_winvar.di_tv, copyID); | 6803 set_ref_in_item(&tp->tp_winvar.di_tv, copyID); |