]>
Commit | Line | Data |
---|---|---|
9b1d76b7 AG |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.0.213 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.0.213 | |
11 | Problem: When 'spellfile' has two regions that use the same sound folding | |
12 | using "z=" will cause memory to be freed twice. (Mark Woodward) | |
13 | Solution: Clear the hashtable properly so that the items are only freed once. | |
14 | Files: src/spell.c | |
15 | ||
16 | ||
17 | *** ../vim-7.0.212/src/spell.c Thu Sep 14 10:48:00 2006 | |
18 | --- src/spell.c Thu Mar 8 14:54:46 2007 | |
19 | *************** | |
20 | *** 13094,13100 **** | |
21 | --- 13094,13103 ---- | |
22 | vim_free(HI2SFT(hi)); | |
23 | --todo; | |
24 | } | |
25 | + | |
26 | + /* Clear the hashtable, it may also be used by another region. */ | |
27 | hash_clear(&slang->sl_sounddone); | |
28 | + hash_init(&slang->sl_sounddone); | |
29 | } | |
30 | } | |
31 | } | |
32 | *** ../vim-7.0.212/src/version.c Thu Mar 8 13:41:25 2007 | |
33 | --- src/version.c Thu Mar 8 14:53:40 2007 | |
34 | *************** | |
35 | *** 668,669 **** | |
36 | --- 668,671 ---- | |
37 | { /* Add new patch number below this line */ | |
38 | + /**/ | |
39 | + 213, | |
40 | /**/ | |
41 | ||
42 | -- | |
43 | The software said it requires Windows 95 or better, so I installed Linux. | |
44 | ||
45 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
46 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
47 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
48 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |