diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-28 12:05:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-28 12:05:11 +0200 |
commit | ca4b613c692b927c9345dc9e3d6be5de35266be2 (patch) | |
tree | fda5e9dfd74a771d6231b7dc5d35c9ade0b9b7bc /src/gui_w32.c | |
parent | dc9e955fb07f410d5d3e981ce18d895dd2847c85 (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_w32.c')
-rw-r--r-- | src/gui_w32.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index 855381108b..147d98b391 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -8922,28 +8922,21 @@ gui_mch_create_beval_area( return NULL; } - beval = (BalloonEval *)alloc(sizeof(BalloonEval)); + beval = (BalloonEval *)alloc_clear(sizeof(BalloonEval)); if (beval != NULL) { beval->target = s_textArea; - beval->balloon = NULL; beval->showState = ShS_NEUTRAL; - beval->x = 0; - beval->y = 0; beval->msg = mesg; beval->msgCB = mesgCB; beval->clientData = clientData; -#ifdef FEAT_VARTABS - beval->vts = NULL; -#endif InitCommonControls(); cur_beval = beval; if (p_beval) gui_mch_enable_beval_area(beval); - } return beval; } |