mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
simplify a bit
This commit is contained in:
parent
0a2fced2ee
commit
1ae1dfcc10
1 changed files with 4 additions and 2 deletions
|
|
@ -243,7 +243,9 @@ void pa_x11_wrapper_unref(pa_x11_wrapper* w) {
|
||||||
pa_assert(w);
|
pa_assert(w);
|
||||||
pa_assert(PA_REFCNT_VALUE(w) >= 1);
|
pa_assert(PA_REFCNT_VALUE(w) >= 1);
|
||||||
|
|
||||||
if (PA_REFCNT_DEC(w) <= 0)
|
if (PA_REFCNT_DEC(w) > 0)
|
||||||
|
return;
|
||||||
|
|
||||||
x11_wrapper_free(w);
|
x11_wrapper_free(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue