pcsound: Fix resouce leak with speaker_handle.

speaker_handle should be close()d after forking the separate sound
server. This fixes #192 (thanks Edward-san).
This commit is contained in:
Simon Howard 2014-04-10 00:09:15 -04:00
parent 1b95bf7679
commit 46fb2a7c8c

View file

@ -237,6 +237,7 @@ static int StartSoundServer(void)
// This is the parent
sound_server_pid = result;
close(speaker_handle);
}
return 1;