Patch 8.0.1286
Problem:    Occasional crash when using a channel. (Marek)
Solution:   Decrement reference count later. (closes #2315)
Files:      src/channel.c


*** ../vim-8.0.1285/src/channel.c       2017-10-01 16:21:25.297497445 +0200
--- src/channel.c       2017-11-10 22:07:03.541738574 +0100
***************
*** 2898,2905 ****
              channel->ch_close_cb = NULL;
              channel->ch_close_partial = NULL;
  
-             --channel->ch_refcount;
- 
              if (channel_need_redraw)
              {
                  channel_need_redraw = FALSE;
--- 2898,2903 ----
***************
*** 2910,2915 ****
--- 2908,2915 ----
                  /* any remaining messages are useless now */
                  for (part = PART_SOCK; part < PART_IN; ++part)
                      drop_messages(channel, part);
+ 
+             --channel->ch_refcount;
        }
      }
  
*** ../vim-8.0.1285/src/version.c       2017-11-11 15:37:13.443209748 +0100
--- src/version.c       2017-11-11 15:53:47.424308112 +0100
***************
*** 763,764 ****
--- 763,766 ----
  {   /* Add new patch number below this line */
+ /**/
+     1286,
  /**/

-- 
OLD WOMAN: King of the WHO?
ARTHUR:    The Britons.
OLD WOMAN: Who are the Britons?
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui