]> granicus.if.org Git - vim/commitdiff
patch 8.1.1515: memory leak reported for sound when build with EXITFREE v8.1.1515
authorBram Moolenaar <Bram@vim.org>
Mon, 10 Jun 2019 12:48:59 +0000 (14:48 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 10 Jun 2019 12:48:59 +0000 (14:48 +0200)
Problem:    Memory leak reported for sound when build with EXITFREE.
Solution:   Free sound stuff when exiting.

src/misc2.c
src/version.c

index 2ac7f5e77cbc0d657d780ad79fc8185d48e92f0e..d1615b1d104811dd971e0ab14f6e9d5d44eff84b 100644 (file)
@@ -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
index 8420be6978456bdcb318a252e1a9c51d214914ed..b493377d4da0bc5ca89be079f6491cd82874f88c 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1515,
 /**/
     1514,
 /**/