mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
move pa_core_check_quit() a bit later
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2511 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
46d17f0a61
commit
a180edd0a5
1 changed files with 5 additions and 2 deletions
|
|
@ -66,18 +66,21 @@ pa_client *pa_client_new(pa_core *core, const char *driver, const char *name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void pa_client_free(pa_client *c) {
|
void pa_client_free(pa_client *c) {
|
||||||
|
pa_core *core;
|
||||||
|
|
||||||
pa_assert(c);
|
pa_assert(c);
|
||||||
pa_assert(c->core);
|
pa_assert(c->core);
|
||||||
|
|
||||||
|
core = c->core;
|
||||||
pa_idxset_remove_by_data(c->core->clients, c, NULL);
|
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_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_subscription_post(c->core, PA_SUBSCRIPTION_EVENT_CLIENT|PA_SUBSCRIPTION_EVENT_REMOVE, c->index);
|
||||||
pa_proplist_free(c->proplist);
|
pa_proplist_free(c->proplist);
|
||||||
pa_xfree(c->driver);
|
pa_xfree(c->driver);
|
||||||
pa_xfree(c);
|
pa_xfree(c);
|
||||||
|
|
||||||
|
pa_core_check_quit(c->core);
|
||||||
}
|
}
|
||||||
|
|
||||||
void pa_client_kill(pa_client *c) {
|
void pa_client_kill(pa_client *c) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue