diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/backends/alsa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index c5b85b81..d43285ad 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -672,7 +672,7 @@ static ALCenum alsa_open_playback(ALCdevice *device, const ALCchar *deviceName) return ALC_OUT_OF_MEMORY; } - // Free alsa's global config tree. Otherwise valgrind reports a ton of leaks. + /* Free alsa's global config tree. Otherwise valgrind reports a ton of leaks. */ snd_config_update_free_global(); device->DeviceName = strdup(deviceName); @@ -955,6 +955,9 @@ static ALCenum alsa_open_capture(ALCdevice *Device, const ALCchar *deviceName) return ALC_INVALID_VALUE; } + /* Free alsa's global config tree. Otherwise valgrind reports a ton of leaks. */ + snd_config_update_free_global(); + format = -1; switch(Device->FmtType) { |