comparison 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
comparison
equal deleted inserted replaced
14207:72a425590918 14208:4cb334816bb1
743 743
744 #ifdef FEAT_BEVAL_GUI 744 #ifdef FEAT_BEVAL_GUI
745 /* Always create the Balloon Evaluation area, but disable it when 745 /* Always create the Balloon Evaluation area, but disable it when
746 * 'ballooneval' is off. */ 746 * 'ballooneval' is off. */
747 if (balloonEval != NULL) 747 if (balloonEval != NULL)
748 {
749 # ifdef FEAT_VARTABS
750 vim_free(balloonEval->vts);
751 # endif
748 vim_free(balloonEval); 752 vim_free(balloonEval);
753 }
749 balloonEvalForTerm = FALSE; 754 balloonEvalForTerm = FALSE;
750 # ifdef FEAT_GUI_GTK 755 # ifdef FEAT_GUI_GTK
751 balloonEval = gui_mch_create_beval_area(gui.drawarea, NULL, 756 balloonEval = gui_mch_create_beval_area(gui.drawarea, NULL,
752 &general_beval_cb, NULL); 757 &general_beval_cb, NULL);
753 # else 758 # else