mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
fix two typos in reference count handling
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1818 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
9be0d70ea7
commit
8775309234
2 changed files with 2 additions and 2 deletions
|
|
@ -349,7 +349,7 @@ void pa_socket_client_unref(pa_socket_client *c) {
|
|||
pa_assert(c);
|
||||
pa_assert(PA_REFCNT_VALUE(c) >= 1);
|
||||
|
||||
if (PA_REFCNT_DEC(c) < 0)
|
||||
if (PA_REFCNT_DEC(c) <= 0)
|
||||
socket_client_free(c);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -422,7 +422,7 @@ void pa_socket_server_unref(pa_socket_server *s) {
|
|||
pa_assert(s);
|
||||
pa_assert(PA_REFCNT_VALUE(s) >= 1);
|
||||
|
||||
if (PA_REFCNT_DEC(s))
|
||||
if (PA_REFCNT_DEC(s) <= 0)
|
||||
socket_server_free(s);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue