aboutsummaryrefslogtreecommitdiff
path: root/qmpmidiread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmpmidiread.cpp')
-rw-r--r--qmpmidiread.cpp4
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);