Make sure the pa_context is disconnected when we unref it. This is also done
implicitly when the last reference to the pa_context is dropped, but that might
be later then expected in case someone else took a reference on our object. To
make sure that the pa_context will than not make any call into our code,
disconnect it explicitly.
{
pa_threaded_mainloop_stop(p->mainloop);
+ pa_context_disconnect(p->context);
pa_context_unref(p->context);
pa_threaded_mainloop_free(p->mainloop);