From: Marc-André Lureau Date: Tue, 8 Oct 2024 12:50:10 +0000 (+0400) Subject: hw/audio/hda: free timer on exit X-Git-Tag: v7.2.15~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efb48ffdfa7fac56083914c60122fb1f6b01363e;p=thirdparty%2Fqemu.git hw/audio/hda: free timer on exit Fixes: 280c1e1cd ("audio/hda: create millisecond timers that handle IO") Signed-off-by: Marc-André Lureau Reviewed-by: Akihiko Odaki Message-ID: <20241008125028.1177932-2-marcandre.lureau@redhat.com> (cherry picked from commit f27206ceedbe2efae37c8d143c5eb2db05251508) Signed-off-by: Michael Tokarev --- diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c index 0f66754b6ac..ce64b84f4ec 100644 --- a/hw/audio/hda-codec.c +++ b/hw/audio/hda-codec.c @@ -748,7 +748,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);