Close stdout, clear ResourceWarning

This commit is contained in:
Brian Curtin 2010-12-29 02:41:07 +00:00
parent 57160d7204
commit 7ef28e8bd7

View file

@ -249,6 +249,7 @@ def _have_soundcard():
p = subprocess.Popen([cscript_path, check_script],
stdout=subprocess.PIPE)
__have_soundcard_cache = not p.wait()
p.stdout.close()
return __have_soundcard_cache