diff src/misc2.c @ 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 70933f7b5de4
children 041156ce1d22
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