diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-28 19:13:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-28 19:13:34 +0100 |
commit | 6d9e71ad994fd428ecea76741376807cd18308ec (patch) | |
tree | 7ea74e097605f9fbe16d20be248cabd742e3b48d /src/beval.h | |
parent | 2ac372ccee1af6f9fa105bf2648d5e4efa554236 (diff) | |
download | vim-git-6d9e71ad994fd428ecea76741376807cd18308ec.tar.gz |
patch 8.1.0652: freeing memory for balloon eval too earlyv8.1.0652
Problem: Freeing memory for balloon eval too early.
Solution: Store the pointer in BalloonEval and free it later. (Yasuhiro
Matsumoto, closes #3725)
Diffstat (limited to 'src/beval.h')
-rw-r--r-- | src/beval.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/beval.h b/src/beval.h index 49ba05b2e..21900c5ad 100644 --- a/src/beval.h +++ b/src/beval.h @@ -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 */ |