summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-06-28 12:05:11 +0200
committerBram Moolenaar <Bram@vim.org>2018-06-28 12:05:11 +0200
commitca4b613c692b927c9345dc9e3d6be5de35266be2 (patch)
treefda5e9dfd74a771d6231b7dc5d35c9ade0b9b7bc /src/gui.c
parentdc9e955fb07f410d5d3e981ce18d895dd2847c85 (diff)
patch 8.1.0121: crash when using ballooneval related to 'vartabstop'v8.1.0121
Problem: Crash when using ballooneval related to 'vartabstop'. Solution: Initialize balloonEval->vts to NULL. (Markus Braun)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui.c b/src/gui.c
index 87ea5ce2b0..f51b81f867 100644
--- 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,