Skip to content

Commit 82febc1

Browse files
committed
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.
1 parent 01257a7 commit 82febc1

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/misc2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,9 @@ free_all_mem(void)
12471247
/* screenlines (can't display anything now!) */
12481248
free_screenlines();
12491249

1250+
# if defined(FEAT_SOUND)
1251+
sound_free();
1252+
# endif
12501253
# if defined(USE_XSMP)
12511254
xsmp_close();
12521255
# endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ static char *(features[]) =
777777

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1515,
780782
/**/
781783
1514,
782784
/**/

0 commit comments

Comments
 (0)