changeset 17030:3e5ee8ce4671 v8.1.1515

patch 8.1.1515: memory leak reported for sound when build with EXITFREE commit https://github.com/vim/vim/commit/82febc16e4ed54b5af0ff503b02b9fd1af75711b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 10 14:48:59 2019 +0200 patch 8.1.1515: memory leak reported for sound when build with EXITFREE Problem: Memory leak reported for sound when build with EXITFREE. Solution: Free sound stuff when exiting.
author Bram Moolenaar <Bram@vim.org>
date Mon, 10 Jun 2019 15:00:07 +0200
parents 959f0016be06
children c3ca9d6be49a
files src/misc2.c src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1247,6 +1247,9 @@ free_all_mem(void)
     /* screenlines (can't display anything now!) */
     free_screenlines();
 
+# if defined(FEAT_SOUND)
+    sound_free();
+# endif
 # if defined(USE_XSMP)
     xsmp_close();
 # endif
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1515,
+/**/
     1514,
 /**/
     1513,