diff src/gui.c @ 14208:4cb334816bb1 v8.1.0121

patch 8.1.0121: crash when using ballooneval related to 'vartabstop' commit https://github.com/vim/vim/commit/ca4b613c692b927c9345dc9e3d6be5de35266be2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 28 12:05:11 2018 +0200 patch 8.1.0121: crash when using ballooneval related to 'vartabstop' Problem: Crash when using ballooneval related to 'vartabstop'. Solution: Initialize balloonEval->vts to NULL. (Markus Braun)
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Jun 2018 12:15:06 +0200
parents ec54a202ad0c
children 0a69e6e708f9
line wrap: on
line diff
--- a/src/gui.c
+++ b/src/gui.c
@@ -745,7 +745,12 @@ gui_init(void)
 	/* Always create the Balloon Evaluation area, but disable it when
 	 * 'ballooneval' is off. */
 	if (balloonEval != NULL)
+	{
+# ifdef FEAT_VARTABS
+	    vim_free(balloonEval->vts);
+# endif
 	    vim_free(balloonEval);
+	}
 	balloonEvalForTerm = FALSE;
 # ifdef FEAT_GUI_GTK
 	balloonEval = gui_mch_create_beval_area(gui.drawarea, NULL,