summaryrefslogtreecommitdiffstats
path: root/src/beval.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-28 19:13:34 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-28 19:13:34 +0100
commit6d9e71ad994fd428ecea76741376807cd18308ec (patch)
tree7ea74e097605f9fbe16d20be248cabd742e3b48d /src/beval.h
parent2ac372ccee1af6f9fa105bf2648d5e4efa554236 (diff)
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/beval.h b/src/beval.h
index 49ba05b2ec..21900c5ad4 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 */