[pulseaudio-commits] r1171 - /trunk/src/pulse/operation.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Jul 29 10:20:09 PDT 2006


Author: lennart
Date: Sat Jul 29 19:20:08 2006
New Revision: 1171

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1171&root=pulseaudio&view=rev
Log:
don't hit an assetr if there are operations outstanding when the pa_context is destroyed

Modified:
    trunk/src/pulse/operation.c

Modified: trunk/src/pulse/operation.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/operation.c?rev=1171&root=pulseaudio&r1=1170&r2=1171&view=diff
==============================================================================
--- trunk/src/pulse/operation.c (original)
+++ trunk/src/pulse/operation.c Sat Jul 29 19:20:08 2006
@@ -76,6 +76,8 @@
     if (st == o->state)
         return;
 
+    pa_operation_ref(o);
+
     o->state = st;
 
     if ((o->state == PA_OPERATION_DONE) || (o->state == PA_OPERATION_CANCELED)) {
@@ -92,6 +94,8 @@
         o->callback = NULL;
         o->userdata = NULL;
     }
+
+    pa_operation_unref(o);
 }
 
 void pa_operation_cancel(pa_operation *o) {




More information about the pulseaudio-commits mailing list