# HG changeset patch # User Bram Moolenaar # Date 1560171607 -7200 # Node ID 3e5ee8ce46719b42d3a2a30d3a19e18116772961 # Parent 959f0016be065003acdae625c7a0ae15b44c4325 patch 8.1.1515: memory leak reported for sound when build with EXITFREE commit https://github.com/vim/vim/commit/82febc16e4ed54b5af0ff503b02b9fd1af75711b Author: Bram Moolenaar 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. diff --git a/src/misc2.c b/src/misc2.c --- 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 diff --git a/src/version.c b/src/version.c --- 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,