summaryrefslogtreecommitdiff
path: root/pcsound
diff options
context:
space:
mode:
authorSimon Howard2014-04-10 00:09:15 -0400
committerSimon Howard2014-04-10 00:09:15 -0400
commit46fb2a7c8c804bb1e131d32e900e408e2e751dbf (patch)
treef79f53d8ec4aeb96ec8c40b7e9940ed4f5012b68 /pcsound
parent1b95bf7679de60d2d7888c8b13af9743b39a5f73 (diff)
downloadchocolate-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).
Diffstat (limited to 'pcsound')
-rw-r--r--pcsound/pcsound_bsd.c1
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;