From aeb0707f1287c481d407d8e8f4a43f86661fdb23 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 15 Jan 2009 18:27:43 +0100 Subject: fix bad memory access --- src/pulsecore/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pulsecore/client.c') diff --git a/src/pulsecore/client.c b/src/pulsecore/client.c index 31631e1f..445e8768 100644 --- a/src/pulsecore/client.c +++ b/src/pulsecore/client.c @@ -88,9 +88,10 @@ void pa_client_free(pa_client *c) { pa_assert(c); pa_assert(c->core); + core = c->core; + pa_hook_fire(&core->hooks[PA_CORE_HOOK_CLIENT_UNLINK], c); - core = c->core; pa_idxset_remove_by_data(c->core->clients, c, NULL); pa_log_info("Freed %u \"%s\"", c->index, pa_strnull(pa_proplist_gets(c->proplist, PA_PROP_APPLICATION_NAME))); -- cgit