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