summaryrefslogtreecommitdiffstats
path: root/src/pulse
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-11-06 10:14:16 +0000
committerPierre Ossman <ossman@cendio.se>2006-11-06 10:14:16 +0000
commit977659684855d30d48958910f92593e94dbb8da8 (patch)
treef5bece4d64b140f9256512c073d37a2aaf9e054e /src/pulse
parentd210ebbb09daddb2c8c8e8e77243e088b0b19c4d (diff)
Handle when threaded mainloop is freed before it is started.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1405 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulse')
-rw-r--r--src/pulse/thread-mainloop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulse/thread-mainloop.c b/src/pulse/thread-mainloop.c
index 060782b5..7e1ccfaa 100644
--- a/src/pulse/thread-mainloop.c
+++ b/src/pulse/thread-mainloop.c
@@ -120,7 +120,8 @@ void pa_threaded_mainloop_free(pa_threaded_mainloop* m) {
pa_threaded_mainloop_stop(m);
- pa_thread_free(m->thread);
+ if (m->thread)
+ pa_thread_free(m->thread);
pa_mainloop_free(m->real_mainloop);