0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.1.0652: freeing memory for balloon eval too early

Problem:    Freeing memory for balloon eval too early.
Solution:   Store the pointer in BalloonEval and free it later. (Yasuhiro
            Matsumoto, closes #3725)
This commit is contained in:
Bram Moolenaar
2018-12-28 19:13:34 +01:00
parent 2ac372ccee
commit 6d9e71ad99
3 changed files with 13 additions and 10 deletions

View File

@@ -76,6 +76,9 @@ typedef struct BalloonEvalStruct
int *vts; // vartabstop setting for this buffer
#endif
char_u *msg;
#ifdef FEAT_GUI_W32
void *tofree;
#endif
} BalloonEval;
#define EVAL_OFFSET_X 15 /* displacement of beval topleft corner from pointer */