commit | 82febc16e4ed54b5af0ff503b02b9fd1af75711b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jun 10 14:48:59 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jun 10 14:48:59 2019 +0200 |
tree | 980b536ed51b5c16d172932ac0ca775dbd1aabbb | |
parent | 01257a7a8e231904ff73fae1f7783e0b6eb4d5aa [diff] [blame] |
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.
diff --git a/src/misc2.c b/src/misc2.c index 2ac7f5e..d1615b1 100644 --- a/src/misc2.c +++ b/src/misc2.c
@@ -1247,6 +1247,9 @@ /* screenlines (can't display anything now!) */ free_screenlines(); +# if defined(FEAT_SOUND) + sound_free(); +# endif # if defined(USE_XSMP) xsmp_close(); # endif