aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/audio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/audio/audio.c b/audio/audio.c
index 9ce2299..7d71533 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);
}