mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 23:49:04 +00:00
sound: Free worker volume in common function
The common function is supposed to clear the state of SndWorker so clear even volume which now is in SndWorker Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
b900147870
commit
d1fac9e646
@ -1582,11 +1582,12 @@ static void snd_detach_common(SndWorker *worker)
|
||||
snd_disconnect_channel(worker->connection);
|
||||
reds_unregister_channel(reds, worker->base_channel);
|
||||
red_channel_destroy(worker->base_channel);
|
||||
free(worker->volume.volume);
|
||||
worker->volume.volume = NULL;
|
||||
}
|
||||
|
||||
static void spice_playback_state_free(SpicePlaybackState *st)
|
||||
{
|
||||
free(st->worker.volume.volume);
|
||||
free(st);
|
||||
}
|
||||
|
||||
@ -1598,7 +1599,6 @@ void snd_detach_playback(SpicePlaybackInstance *sin)
|
||||
|
||||
static void spice_record_state_free(SpiceRecordState *st)
|
||||
{
|
||||
free(st->worker.volume.volume);
|
||||
free(st);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user