Mercurial > vim
view src/testdir/gui_preinit.vim @ 31620:2266b5c4f87b v9.0.1142
patch 9.0.1142: crash and/or memory leak when redefining function
Commit: https://github.com/vim/vim/commit/f057171d8b562c72334fd7c15c89ff787358ce3a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 4 13:16:20 2023 +0000
patch 9.0.1142: crash and/or memory leak when redefining function
Problem: Crash and/or memory leak when redefining function after error.
Solution: Clear pointer after making a copy. Clear arrays on failure.
(closes #11774)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Jan 2023 14:30:03 +0100 |
parents | d8a550329a97 |
children |
line wrap: on
line source
" vimrc for test_gui_init.vim " Note that this flag must be added in the .vimrc file, before switching on " syntax or filetype recognition (when the |gvimrc| file is sourced the system " menu has already been loaded; the ":syntax on" and ":filetype on" commands " load the menu too). set guioptions+=M