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: v8.2.8~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6298efc5b265e053c7d6e6e198e4a956da82feca;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 0bc20d49f6c..19f401cabe6 100644 --- a/hw/audio/hda-codec.c +++ b/hw/audio/hda-codec.c @@ -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);