diff options
Diffstat (limited to 'core/qmpmidiread.cpp')
-rw-r--r-- | core/qmpmidiread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qmpmidiread.cpp b/core/qmpmidiread.cpp index 478ec82..5add648 100644 --- a/core/qmpmidiread.cpp +++ b/core/qmpmidiread.cpp @@ -241,7 +241,7 @@ CMidiFile* CSMFReader::readFile(const char* fn) fclose(f);f=NULL; std::sort(ret->eventList.begin(),ret->eventList.end()); } - catch(std::runtime_error&){fprintf(stderr,"E: %s is not a supported file.\n",fn);ret->valid=0;fclose(f);f=NULL;} + catch(std::runtime_error&){fprintf(stderr,"E: %s is not a supported file.\n",fn);ret->valid=0;if(f)fclose(f);f=NULL;} return ret; } CSMFReader::~CSMFReader() |