Permalink
Browse files

Fixed a small mistake in the audio input wave file destructor.

This should help with issue #15.
  • Loading branch information...
1 parent 05d3df3 commit a41fbffa72a0e17f0c24998b7c86f159da8dd56d Yohann Ferreira committed Nov 12, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/engine/audio/audio_input.h
@@ -164,9 +164,8 @@ class WavFile : public AudioInput
_filename = file_name;
}
- ~WavFile() {
- if(_file_input) _file_input.close();
- }
+ ~WavFile()
+ { if (_file_input.is_open()) _file_input.close(); }
//! \brief Inherited functions from AudioInput class
//@{

0 comments on commit a41fbff

Please sign in to comment.