diff options
| author | Connor MacDonald <csmacdonald95@gmail.com> | 2018-05-24 10:57:30 -0300 |
|---|---|---|
| committer | Connor MacDonald <csmacdonald95@gmail.com> | 2018-05-24 10:57:30 -0300 |
| commit | d79e960d709e6f540a724ef3dd33fb91aab1e5e4 (patch) | |
| tree | c4860ae3220f121f5cbeec1d2afc272ae19acee2 /RtAudio.cpp | |
| parent | 4a7ca4f1d42fff04eb085d85a3b298df2c937a34 (diff) | |
Fix ALSA CTL handle not being closed in the default case
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index b091e15..8255993 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -7157,6 +7157,7 @@ bool RtApiAlsa :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigne if ( result == 0 ) { if ( nDevices == device ) { strcpy( name, "default" ); + snd_ctl_close( chandle ); goto foundDevice; } nDevices++; |
