diff options
author | Chris Xiong <chirs241097@gmail.com> | 2017-02-12 23:33:41 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2017-02-12 23:33:41 +0800 |
commit | 3312e495cf54a8bd6451552216f5aeea1a06d486 (patch) | |
tree | 2de25e8b53ba2747c613451fa16c3203578fbd93 /core | |
parent | d779d32c8c32e0e0c22662046498620b11fa46de (diff) | |
download | QMidiPlayer-3312e495cf54a8bd6451552216f5aeea1a06d486.tar.xz |
UI revolution cont'd. Powered by @BLumia.
Expose new APIs to plugin developer.
Use svg icons.
Diffstat (limited to 'core')
-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() |