From: Takashi Iwai Date: Tue, 25 Apr 2006 15:24:39 +0000 (+0200) Subject: Add missing snd_dlclose() in snd_hwdep_close() X-Git-Tag: v1.0.12rc1~25 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=34e99ad251502bcadbbba53ba69dc3f2f0516e69;p=alsa-lib.git Add missing snd_dlclose() in snd_hwdep_close() Added the missing snd_dlclose() in snd_hwdep_close(). --- 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;