pulse: fix crash when cleaning up signals

Also make sure the main pulseaudio binary can't be started.
This commit is contained in:
Wim Taymans 2020-08-21 15:36:03 +02:00
parent f3c06372ef
commit 4370675d2b
3 changed files with 12 additions and 8 deletions

View file

@ -254,6 +254,9 @@ pa_mainloop *pa_mainloop_new(void)
{
pa_mainloop *loop;
if (getenv("PULSE_INTERNAL"))
return NULL;
loop = calloc(1, sizeof(pa_mainloop));
if (loop == NULL)
return NULL;