mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
object: revert to old unref() behaviour
This mostly reverts these two commits:eb04d0fda612c5afe038
This commit is contained in:
parent
eb04d0fda6
commit
8fbf6269b3
1 changed files with 1 additions and 2 deletions
|
|
@ -59,10 +59,9 @@ pa_object *pa_object_ref(pa_object *o) {
|
|||
void pa_object_unref(pa_object *o) {
|
||||
pa_object_assert_ref(o);
|
||||
|
||||
if (PA_REFCNT_VALUE(o) == 1) {
|
||||
if (PA_REFCNT_DEC(o) <= 0) {
|
||||
pa_assert(o->free);
|
||||
o->free(o);
|
||||
pa_assert_se(PA_REFCNT_DEC(o) == 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue