]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/audio/hda: free timer on exit
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 8 Oct 2024 12:50:10 +0000 (16:50 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 16 Oct 2024 08:14:04 +0000 (11:14 +0300)
Fixes: 280c1e1cd ("audio/hda: create millisecond timers that handle IO")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-ID: <20241008125028.1177932-2-marcandre.lureau@redhat.com>
(cherry picked from commit f27206ceedbe2efae37c8d143c5eb2db05251508)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/audio/hda-codec.c

index b22e486fda98841ba98b7b07263a0b74e368f9db..ee3d0a7decc3f7beb9fcb8feeaefe662c468441f 100644 (file)
@@ -751,7 +751,7 @@ static void hda_audio_exit(HDACodecDevice *hda)
             continue;
         }
         if (a->use_timer) {
-            timer_del(st->buft);
+            timer_free(st->buft);
         }
         if (st->output) {
             AUD_close_out(&a->card, st->voice.out);