From 729bc00f13fcad4ed986c3e5cf4565fd4ce0dead Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 29 Apr 2015 15:01:28 -0400 Subject: [PATCH] no need to close a file that will not be removed (and has no name) --- libs/audiographer/audiographer/sndfile/tmp_file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/audiographer/audiographer/sndfile/tmp_file.h b/libs/audiographer/audiographer/sndfile/tmp_file.h index 8ea676c0d5..24caf5a723 100644 --- a/libs/audiographer/audiographer/sndfile/tmp_file.h +++ b/libs/audiographer/audiographer/sndfile/tmp_file.h @@ -37,8 +37,8 @@ class TmpFile : public SndfileWriter, public SndfileReader /* explicitly close first, some OS (yes I'm looking at you windows) * cannot delet files that are still open */ - SndfileBase::close(); if (!filename.empty()) { + SndfileBase::close(); std::remove(filename.c_str()); } }