Problem: Memory leak in balloon_split().
Solution: Free the balloon lines. Free the balloon when exiting.
/* Skip the first and last item, they are always empty. */
for (i = 1; i < size - 1; ++i)
list_append_string(rettv->vval.v_list, array[i].pum_text, -1);
+ while (size > 0)
+ vim_free(array[--size].pum_text);
vim_free(array);
}
}
spell_free_all();
# endif
+#if defined(FEAT_INS_EXPAND) && defined(FEAT_BEVAL_TERM)
+ ui_remove_balloon();
+# endif
+
# if defined(FEAT_USR_CMDS)
/* Clear user commands (before deleting buffers). */
ex_comclear(NULL);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1492,
/**/
1491,
/**/