Fix another missing call to snd_ctl_close
authorConnor MacDonald <csmacdonald95@gmail.com>
Thu, 24 May 2018 15:34:07 +0000 (12:34 -0300)
committerConnor MacDonald <csmacdonald95@gmail.com>
Thu, 24 May 2018 15:34:07 +0000 (12:34 -0300)
RtAudio.cpp

index 8255993708eff86310ac24ed35d4a1a655c8c0d2..e1462f4ddba67f283eb454ca7cb1a119c3b382f5 100644 (file)
@@ -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.