summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-11-21 19:57:30 +0000
committerBram Moolenaar <Bram@vim.org>2006-11-21 19:57:30 +0000
commit9334c3447a7034f749f1c1da132d4bf860471c28 (patch)
tree1e47e1269fa3d7fcc4f53c36e3bad97ebe717d7a /src
parentb42dc236e9627c22bc48e35ff4ad8ad3dd5a0077 (diff)
downloadvim-9334c3447a7034f749f1c1da132d4bf860471c28.zip
updated for version 7.0-168
Diffstat (limited to 'src')
-rw-r--r--src/memline.c1
-rw-r--r--src/version.c2
-rw-r--r--src/window.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/src/memline.c b/src/memline.c
index 80a870a0e..ddaf6de58 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1329,6 +1329,7 @@ theend:
mf_put(mfp, hp, FALSE, FALSE);
mf_close(mfp, FALSE); /* will also vim_free(mfp->mf_fname) */
}
+ vim_free(buf->b_ml.ml_stack);
vim_free(buf);
if (serious_error && called_from_main)
ml_close(curbuf, TRUE);
diff --git a/src/version.c b/src/version.c
index 550137eb0..f1095b691 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 168,
+/**/
167,
/**/
166,
diff --git a/src/window.c b/src/window.c
index 5f5bb2a09..ee9ef9c0c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4273,7 +4273,7 @@ win_alloc_lines(wp)
win_T *wp;
{
wp->w_lines_valid = 0;
- wp->w_lines = (wline_T *)alloc((unsigned)(Rows * sizeof(wline_T)));
+ wp->w_lines = (wline_T *)alloc_clear((unsigned)(Rows * sizeof(wline_T)));
if (wp->w_lines == NULL)
return FAIL;
return OK;