Sample Manager "Error: leaked sample of size: . . . " what it is and how to fix?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rgrams
:warning: Old Version Published before Godot 3 was released.

Whenever I quit my game, I get a whole bunch of these errors:

ERROR: SampleManagerMallocSW: : ~SampleManagerMallocSW: Leaked Sample
of size: 35678 description:
At: servers\audio\sample_manager_sw.cpp:315

I checked the source code, but I don’t know C++ well enough to really understand it. Can anyone tell me what this error means and how to fix it?

I’m using a scene with a SamplePlayer instanced through an autoload script to deal with most of my sounds, I’m assuming that’s where this is coming from.

No one knows eh? Bugger.

rgrams | 2016-08-29 12:10

:bust_in_silhouette: Reply From: rgrams

It turns out my scene with the SamplePlayer was instanced, but I never actually added it to the scene tree, so it was reporting that “Leaked Sample” error for (I think) each sound that was playing when the game exited, and a couple other errors about objects being still in use on exit. I added the scene as a child of the tree and those all stopped.