diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-11-06 10:14:16 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-11-06 10:14:16 +0000 |
commit | 977659684855d30d48958910f92593e94dbb8da8 (patch) | |
tree | f5bece4d64b140f9256512c073d37a2aaf9e054e /src | |
parent | d210ebbb09daddb2c8c8e8e77243e088b0b19c4d (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')
-rw-r--r-- | src/pulse/thread-mainloop.c | 3 |
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); |