Mercurial > vim
comparison src/buffer.c @ 11690:ce434212d682 v8.0.0728
patch 8.0.0728: the terminal structure is never freed
commit https://github.com/vim/vim/commit/96ca27a0ee8ae738cab9fb386984c75c6821e31a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 17 23:20:24 2017 +0200
patch 8.0.0728: the terminal structure is never freed
Problem: The terminal structure is never freed.
Solution: Free the structure and unreference what it contains.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 17 Jul 2017 23:30:03 +0200 |
parents | e349dc7889f5 |
children | 74abb6c84984 |
comparison
equal
deleted
inserted
replaced
11689:d0213284cfb4 | 11690:ce434212d682 |
---|---|
856 #ifdef FEAT_RUBY | 856 #ifdef FEAT_RUBY |
857 ruby_buffer_free(buf); | 857 ruby_buffer_free(buf); |
858 #endif | 858 #endif |
859 #ifdef FEAT_JOB_CHANNEL | 859 #ifdef FEAT_JOB_CHANNEL |
860 channel_buffer_free(buf); | 860 channel_buffer_free(buf); |
861 #endif | |
862 #ifdef FEAT_TERMINAL | |
863 free_terminal(buf->b_term); | |
861 #endif | 864 #endif |
862 | 865 |
863 buf_hashtab_remove(buf); | 866 buf_hashtab_remove(buf); |
864 | 867 |
865 #ifdef FEAT_AUTOCMD | 868 #ifdef FEAT_AUTOCMD |
1769 if (curwin->w_p_diff) | 1772 if (curwin->w_p_diff) |
1770 diff_buf_add(curbuf); | 1773 diff_buf_add(curbuf); |
1771 #endif | 1774 #endif |
1772 | 1775 |
1773 #ifdef FEAT_SYN_HL | 1776 #ifdef FEAT_SYN_HL |
1774 curwin->w_s = &(buf->b_s); | 1777 curwin->w_s = &(curbuf->b_s); |
1775 #endif | 1778 #endif |
1776 | 1779 |
1777 /* Cursor on first line by default. */ | 1780 /* Cursor on first line by default. */ |
1778 curwin->w_cursor.lnum = 1; | 1781 curwin->w_cursor.lnum = 1; |
1779 curwin->w_cursor.col = 0; | 1782 curwin->w_cursor.col = 0; |