diff options
author | nedko <nedko@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2008-04-04 22:44:13 +0000 |
---|---|---|
committer | nedko <nedko@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2008-04-04 22:44:13 +0000 |
commit | 219a78abcb51d13dca29e14f20800c340afdf250 (patch) | |
tree | 6ef31a4d0503cf311f86be290cb35f0dfb6b7c08 | |
parent | d0aed7f5e9d4365f3c1e4ba0477c49d3b0f266b8 (diff) | |
download | jack1-219a78abcb51d13dca29e14f20800c340afdf250.tar.gz |
Fix alsa control handle leak. ok: paul
git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1149 0c269be4-1314-0410-8aa9-9f06e86f4224
-rw-r--r-- | drivers/alsa/alsa_driver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/alsa/alsa_driver.c b/drivers/alsa/alsa_driver.c index b6bdcab..6db2d21 100644 --- a/drivers/alsa/alsa_driver.c +++ b/drivers/alsa/alsa_driver.c @@ -1938,6 +1938,11 @@ alsa_driver_delete (alsa_driver_t *driver) } jack_slist_free (driver->clock_sync_listeners); + if (driver->ctl_handle) { + snd_ctl_close (driver->ctl_handle); + driver->ctl_handle = 0; + } + if (driver->capture_handle) { snd_pcm_close (driver->capture_handle); driver->capture_handle = 0; |