diff options
author | Simon Howard | 2014-04-10 00:09:15 -0400 |
---|---|---|
committer | Simon Howard | 2014-04-10 00:09:15 -0400 |
commit | 46fb2a7c8c804bb1e131d32e900e408e2e751dbf (patch) | |
tree | f79f53d8ec4aeb96ec8c40b7e9940ed4f5012b68 | |
parent | 1b95bf7679de60d2d7888c8b13af9743b39a5f73 (diff) | |
download | chocolate-doom-46fb2a7c8c804bb1e131d32e900e408e2e751dbf.tar.gz chocolate-doom-46fb2a7c8c804bb1e131d32e900e408e2e751dbf.tar.bz2 chocolate-doom-46fb2a7c8c804bb1e131d32e900e408e2e751dbf.zip |
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).
-rw-r--r-- | pcsound/pcsound_bsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pcsound/pcsound_bsd.c b/pcsound/pcsound_bsd.c index 6ba73037..7fb7ba36 100644 --- a/pcsound/pcsound_bsd.c +++ b/pcsound/pcsound_bsd.c @@ -237,6 +237,7 @@ static int StartSoundServer(void) // This is the parent sound_server_pid = result; + close(speaker_handle); } return 1; |