mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
pulse-server: Correctly unref sample
Decrease the actual ref counter, instead of the pointer value.
This commit is contained in:
parent
13a1049abf
commit
ee82bfe5fb
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ static void sample_play_stream_destroy(void *data)
|
|||
pw_log_info("destroy %s", p->sample->name);
|
||||
spa_hook_remove(&p->listener);
|
||||
p->stream = NULL;
|
||||
if (--p->sample == 0)
|
||||
if (--p->sample->ref == 0)
|
||||
sample_free(p->sample);
|
||||
p->sample = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue