mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
object: fix ref counting of objects on destruction
This commit is contained in:
parent
ad2a0ab40b
commit
eb04d0fda6
1 changed files with 1 additions and 1 deletions
|
|
@ -62,8 +62,8 @@ void pa_object_unref(pa_object *o) {
|
|||
if (PA_REFCNT_VALUE(o) == 1) {
|
||||
pa_assert(o->free);
|
||||
o->free(o);
|
||||
} else
|
||||
pa_assert_se(PA_REFCNT_DEC(o) == 0);
|
||||
}
|
||||
}
|
||||
|
||||
int pa_object_check_type(const char *type_name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue