]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.034
- updated to 7.2.102
[packages/vim.git] / 7.2.034
CommitLineData
2f43f8e6
ER
1To: vim-dev@vim.org
2Subject: Patch 7.2.034
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.034
11Problem: Memory leak in spell info when deleting buffer.
12Solution: Free the memory. (Dominique Pelle)
13Files: src/buffer.c
14
15
16*** ../vim-7.2.033/src/buffer.c Mon Sep 1 17:32:40 2008
17--- src/buffer.c Wed Nov 12 11:21:49 2008
18***************
19*** 647,652 ****
20--- 647,655 ----
21 vim_free(buf->b_start_fenc);
22 buf->b_start_fenc = NULL;
23 #endif
24+ #ifdef FEAT_SPELL
25+ ga_clear(&buf->b_langp);
26+ #endif
27 }
28
29 /*
30***************
31*** 1237,1243 ****
32 * "buf" if one exists */
33 if ((swb_flags & SWB_USEOPEN) && buf_jump_open_win(buf))
34 return OK;
35! /* If 'switchbuf' contians "usetab": jump to first window in any tab
36 * page containing "buf" if one exists */
37 if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf))
38 return OK;
39--- 1240,1246 ----
40 * "buf" if one exists */
41 if ((swb_flags & SWB_USEOPEN) && buf_jump_open_win(buf))
42 return OK;
43! /* If 'switchbuf' contains "usetab": jump to first window in any tab
44 * page containing "buf" if one exists */
45 if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf))
46 return OK;
47***************
48*** 3964,3970 ****
49 width = vim_strsize(out);
50 if (maxwidth > 0 && width > maxwidth)
51 {
52! /* Result is too long, must trunctate somewhere. */
53 l = 0;
54 if (itemcnt == 0)
55 s = out;
56--- 3967,3973 ----
57 width = vim_strsize(out);
58 if (maxwidth > 0 && width > maxwidth)
59 {
60! /* Result is too long, must truncate somewhere. */
61 l = 0;
62 if (itemcnt == 0)
63 s = out;
64*** ../vim-7.2.033/src/version.c Tue Nov 11 21:55:29 2008
65--- src/version.c Wed Nov 12 12:51:21 2008
66***************
67*** 678,679 ****
68--- 678,681 ----
69 { /* Add new patch number below this line */
70+ /**/
71+ 34,
72 /**/
73
74--
75hundred-and-one symptoms of being an internet addict:
76236. You start saving URL's in your digital watch.
77
78 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
79/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
80\\\ download, build and distribute -- http://www.A-A-P.org ///
81 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.065619 seconds and 4 git commands to generate.