From 7f92542420ef6085b6f090954052266cc70af8a1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 12 Sep 2007 00:04:21 +0000 Subject: consolidate close() calls to pa_close(), and make sure on every occasion that we handle failures of close() sensibly git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1811 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/sound-file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pulsecore/sound-file.c') diff --git a/src/pulsecore/sound-file.c b/src/pulsecore/sound-file.c index 8727ba15..b1c509f2 100644 --- a/src/pulsecore/sound-file.c +++ b/src/pulsecore/sound-file.c @@ -36,6 +36,7 @@ #include #include #include +#include #include "sound-file.h" #include "core-scache.h" @@ -77,7 +78,7 @@ int pa_sound_file_load( if (!(sf = sf_open_fd(fd, SFM_READ, &sfinfo, 1))) { pa_log("Failed to open file %s", fname); - close(fd); + pa_close(fd); goto finish; } -- cgit