From 82febc16e4ed54b5af0ff503b02b9fd1af75711b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 10 Jun 2019 14:48:59 +0200 Subject: 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. --- src/misc2.c | 3 +++ src/version.c | 2 ++ 2 files changed, 5 insertions(+) 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, /**/ -- cgit v1.2.1