bluetooth: don't crash on pa_thread_mq_done() if pa_init() fail

This commit is contained in:
Marc-André Lureau 2009-02-13 12:18:14 +02:00
parent b51e6135e8
commit b4c391ee5e

View file

@ -1517,9 +1517,9 @@ static void stop_thread(struct userdata *u) {
u->source = NULL; u->source = NULL;
} }
if (u->rtpoll) {
pa_thread_mq_done(&u->thread_mq); pa_thread_mq_done(&u->thread_mq);
if (u->rtpoll) {
pa_rtpoll_free(u->rtpoll); pa_rtpoll_free(u->rtpoll);
u->rtpoll = NULL; u->rtpoll = NULL;
} }