diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-01-15 20:36:58 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-01-15 20:36:58 +0800 |
commit | e3a5241953051e97978ac42fa278572ae735abb3 (patch) | |
tree | ddfb72e4dfec592cd1ecc803818e1f50bc5da049 /qmpmidiread.cpp | |
parent | 1e1036e705b20ea407bbb922e40c0f44147b3691 (diff) | |
download | QMidiPlayer-0.6.2.tar.xz |
Doll's Phantom. (WTF)0.6.2
Diffstat (limited to 'qmpmidiread.cpp')
-rw-r--r-- | qmpmidiread.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qmpmidiread.cpp b/qmpmidiread.cpp index f09f9e0..0bcf597 100644 --- a/qmpmidiread.cpp +++ b/qmpmidiread.cpp @@ -213,9 +213,7 @@ int CMidiFile::chunkReader(int hdrXp) } CMidiFile::CMidiFile(const char* fn) { - if(title)delete[] title; - if(copyright)delete[] copyright; - title=copyright=NULL;notes=0;std=0;valid=1; + title=copyright=NULL;notes=eventc=0;std=0;valid=1; try { if(!(f=fopen(fn,"rb")))throw (fprintf(stderr,"E: file %s doesn't exist!\n",fn),2); |