diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-08 17:07:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-08 17:07:19 +0200 |
commit | 107e1eef1df3b786ad3ad49fbdb9e058649303b5 (patch) | |
tree | 1b645e4de0cc6a8021a5c48ca97897edf7e48adf /src/globals.h | |
parent | d56374e25df0b317b01423a01f158157faa647fa (diff) |
patch 7.4.1719v7.4.1719
Problem: Leaking memory when there is a cycle involving a job and a
partial.
Solution: Add a copyID to job and channel. Set references in items referred
by them. Go through all jobs and channels to find unreferenced
items. Also, decrement reference counts when garbage collecting.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 05dec4a0e3..3278ad9775 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1619,6 +1619,8 @@ EXTERN int alloc_fail_countdown INIT(= -1); EXTERN int alloc_fail_repeat INIT(= 0); EXTERN int disable_char_avail_for_testing INIT(= 0); + +EXTERN int in_free_unref_items INIT(= FALSE); #endif /* |