From: Lennart Poettering Date: Thu, 15 Jan 2009 17:27:43 +0000 (+0100) Subject: fix bad memory access X-Git-Tag: v0.9.15-test1~226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aeb0707f1287c481d407d8e8f4a43f86661fdb23;p=platform%2Fupstream%2Fpulseaudio.git fix bad memory access --- diff --git a/src/pulsecore/client.c b/src/pulsecore/client.c index 31631e1..445e876 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)));