summaryrefslogtreecommitdiff
path: root/src/hwdep
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-04-25 17:24:39 +0200
committerTakashi Iwai <tiwai@suse.de>2006-04-25 17:24:39 +0200
commit34e99ad251502bcadbbba53ba69dc3f2f0516e69 (patch)
treee0a0f68442afb574d7815330d70ce82a98a0ba35 /src/hwdep
parent2875f1169fbb1350f87e1bba794b5e45b4a79322 (diff)
downloadalsa-lib-34e99ad251502bcadbbba53ba69dc3f2f0516e69.tar.gz
Add missing snd_dlclose() in snd_hwdep_close()
Added the missing snd_dlclose() in snd_hwdep_close().
Diffstat (limited to 'src/hwdep')
-rw-r--r--src/hwdep/hwdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hwdep/hwdep.c b/src/hwdep/hwdep.c
index 4d4490cd..300c62a5 100644
--- a/src/hwdep/hwdep.c
+++ b/src/hwdep/hwdep.c
@@ -207,6 +207,8 @@ int snd_hwdep_close(snd_hwdep_t *hwdep)
int err;
assert(hwdep);
err = hwdep->ops->close(hwdep);
+ if (hwdep->dl_handle)
+ snd_dlclose(hwdep->dl_handle);
free(hwdep->name);
free(hwdep);
return err;