[pulseaudio-commits] r2511 - /trunk/src/pulsecore/client.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Jun 11 09:56:03 PDT 2008


Author: lennart
Date: Wed Jun 11 18:56:03 2008
New Revision: 2511

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2511&root=pulseaudio&view=rev
Log:
move pa_core_check_quit() a bit later

Modified:
    trunk/src/pulsecore/client.c

Modified: trunk/src/pulsecore/client.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/client.c?rev=2511&root=pulseaudio&r1=2510&r2=2511&view=diff
==============================================================================
--- trunk/src/pulsecore/client.c (original)
+++ trunk/src/pulsecore/client.c Wed Jun 11 18:56:03 2008
@@ -66,18 +66,21 @@
 }
 
 void pa_client_free(pa_client *c) {
+    pa_core *core;
+
     pa_assert(c);
     pa_assert(c->core);
 
+    core = c->core;
     pa_idxset_remove_by_data(c->core->clients, c, NULL);
-
-    pa_core_check_quit(c->core);
 
     pa_log_info("Freed %u \"%s\"", c->index, pa_strnull(pa_proplist_gets(c->proplist, PA_PROP_APPLICATION_NAME)));
     pa_subscription_post(c->core, PA_SUBSCRIPTION_EVENT_CLIENT|PA_SUBSCRIPTION_EVENT_REMOVE, c->index);
     pa_proplist_free(c->proplist);
     pa_xfree(c->driver);
     pa_xfree(c);
+
+    pa_core_check_quit(c->core);
 }
 
 void pa_client_kill(pa_client *c) {




More information about the pulseaudio-commits mailing list