From: Kővágó, Zoltán <dirty.ice...@gmail.com> Signed-off-by: Kővágó, Zoltán <dirty.ice...@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <phi...@redhat.com> Message-id: ed35e9e72aa77c9376e9c8a8f3a5443703fe6fbe.1566168923.git.dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann <kra...@redhat.com> --- audio/audio.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/audio/audio.c b/audio/audio.c index 9ce229969526..7d715332c993 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); } -- 2.18.1