summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
authorConnor MacDonald <csmacdonald95@gmail.com>2018-05-24 12:34:07 -0300
committerConnor MacDonald <csmacdonald95@gmail.com>2018-05-24 12:34:07 -0300
commitab4af532a13c5659e3355fb72428546a60e1925d (patch)
treeecdd916e34e8a74dfaa403639c866ee92e408c7d /RtAudio.cpp
parentd79e960d709e6f540a724ef3dd33fb91aab1e5e4 (diff)
Fix another missing call to snd_ctl_close
Diffstat (limited to 'RtAudio.cpp')
-rw-r--r--RtAudio.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index 8255993..e1462f4 100644
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -7162,6 +7162,7 @@ bool RtApiAlsa :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigne
}
nDevices++;
}
+ snd_ctl_close( chandle );
if ( nDevices == 0 ) {
// This should not happen because a check is made before this function is called.