summaryrefslogtreecommitdiffstats
path: root/core.c
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-07 12:42:31 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:37 +1100
commit86c77302e07b229d6723dc1f8e3da02765cff1f1 (patch)
tree915cb5baf2b557e8dd88bc576d8e597bc574a331 /core.c
parent7e4d6e2f61c97da680591b77fb89a69f69a3af7f (diff)
Clean up sound card on module exit
Sound card was not being free'd properly on module exit. Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'core.c')
-rw-r--r--core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core.c b/core.c
index bf122ed..15df64f 100644
--- a/core.c
+++ b/core.c
@@ -463,6 +463,7 @@ static void __exit core_exit(void)
__avirt_configfs_exit(&core);
kset_unregister(avirt_audiopath_kset);
+ snd_card_free(core.card);
device_destroy(core.avirt_class, 0);
class_destroy(core.avirt_class);
}