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:
parent
1b95bf7679
commit
46fb2a7c8c
1 changed files with 1 additions and 0 deletions
|
|
@ -237,6 +237,7 @@ static int StartSoundServer(void)
|
|||
// This is the parent
|
||||
|
||||
sound_server_pid = result;
|
||||
close(speaker_handle);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue