]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Add missing snd_dlclose() in snd_hwdep_close()
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Apr 2006 15:24:39 +0000 (17:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Apr 2006 15:24:39 +0000 (17:24 +0200)
Added the missing snd_dlclose() in snd_hwdep_close().

src/hwdep/hwdep.c

index 4d4490cd14aee80069a9dd7b4b36141b9f0b6c1a..300c62a53188c3ba8b6242960953f9274a45eb9d 100644 (file)
@@ -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;