summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/client.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-15 18:27:43 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-15 18:27:43 +0100
commitaeb0707f1287c481d407d8e8f4a43f86661fdb23 (patch)
treee886fe95fc7c1c22890973b823c5ce1ff1b0366f /src/pulsecore/client.c
parent0b0b3d895d291446112f4c77bf1d9388e675af55 (diff)
fix bad memory access
Diffstat (limited to 'src/pulsecore/client.c')
-rw-r--r--src/pulsecore/client.c3
1 files changed, 2 insertions, 1 deletions
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)));