mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: check reference count of sample when freeing it
When the pulse server context is being freed, only a single reference should be alive to each sample because the pending samples are all destroyed beforehand.
This commit is contained in:
parent
f181210b29
commit
e63dee6075
1 changed files with 4 additions and 1 deletions
|
|
@ -5070,7 +5070,10 @@ const struct command commands[COMMAND_MAX] =
|
|||
static int impl_free_sample(void *item, void *data)
|
||||
{
|
||||
struct sample *s = item;
|
||||
sample_free(s);
|
||||
|
||||
spa_assert(s->ref == 1);
|
||||
sample_unref(s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue