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:
Lennart Poettering 2007-09-14 21:01:00 +00:00
parent 9be0d70ea7
commit 8775309234
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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);
}