From: Bram Moolenaar Date: Mon, 10 Jun 2019 12:48:59 +0000 (+0200) Subject: patch 8.1.1515: memory leak reported for sound when build with EXITFREE X-Git-Tag: v8.1.1515 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82febc16e4ed54b5af0ff503b02b9fd1af75711b;p=vim 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 2ac7f5e77..d1615b1d1 100644 --- 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 index 8420be697..b493377d4 100644 --- a/src/version.c +++ b/src/version.c @@ -777,6 +777,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1515, /**/ 1514, /**/