Fix memory leak

This commit is contained in:
Benau
2016-02-04 10:11:14 +08:00
parent 38eeddd4e8
commit 5810acb114

View File

@@ -493,6 +493,7 @@ void Track::loadTrackInfo()
if(!root || root->getName()!="track")
{
delete root;
std::ostringstream o;
o<<"Can't load track '"<<m_filename<<"', no track element.";
throw std::runtime_error(o.str());