[pulseaudio-commits] r1818 - in /branches/lennart/src/pulsecore: socket-client.c socket-server.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Sep 14 14:01:01 PDT 2007


Author: lennart
Date: Fri Sep 14 23:01:00 2007
New Revision: 1818

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1818&root=pulseaudio&view=rev
Log:
fix two typos in reference count handling

Modified:
    branches/lennart/src/pulsecore/socket-client.c
    branches/lennart/src/pulsecore/socket-server.c

Modified: branches/lennart/src/pulsecore/socket-client.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/socket-client.c?rev=1818&root=pulseaudio&r1=1817&r2=1818&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/socket-client.c (original)
+++ branches/lennart/src/pulsecore/socket-client.c Fri Sep 14 23:01:00 2007
@@ -349,7 +349,7 @@
     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);
 }
 

Modified: branches/lennart/src/pulsecore/socket-server.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/socket-server.c?rev=1818&root=pulseaudio&r1=1817&r2=1818&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/socket-server.c (original)
+++ branches/lennart/src/pulsecore/socket-server.c Fri Sep 14 23:01:00 2007
@@ -422,7 +422,7 @@
     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);
 }
 




More information about the pulseaudio-commits mailing list