neovim/neovim — pull request #1209 by atwupack (2014-09-20 22:32:39+00:00)
Title: vim-patch:7.4.320

Problem: Possible crash when an BufLeave autocommand deletes the buffer.
Solution: Check for the window pointer being valid. Postpone freeing the window until autocommands are done. (Yasuhiro Matsumoto)

https://code.google.com/p/vim/source/detail?r=v7-4-320