diff --git a/audio/audio.c b/audio/audio.c index 9ce2299695..7d715332c9 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1345,6 +1345,12 @@ static void free_audio_state(AudioState *s) qapi_free_Audiodev(s->dev); s->dev = NULL; } + + if (s->ts) { + timer_free(s->ts); + s->ts = NULL; + } + g_free(s); }