summaryrefslogtreecommitdiff
path: root/src/instrumentparser.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-02-09 13:09:26 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-02-09 13:09:26 +0100
commiteddcef9d4b81041e883626044d9dae81f8d8d9d9 (patch)
treea040a86672f060b0ee7b0b476a30426bdc4ccb8a /src/instrumentparser.cc
parent0a2b49267f9002c7289e60654203e9b108c06f73 (diff)
Fix two valgrind errors and mark three others with a TODO comment.
Diffstat (limited to 'src/instrumentparser.cc')
-rw-r--r--src/instrumentparser.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/instrumentparser.cc b/src/instrumentparser.cc
index 1f25bc7..8fa147a 100644
--- a/src/instrumentparser.cc
+++ b/src/instrumentparser.cc
@@ -90,6 +90,7 @@ void InstrumentParser::startTag(std::string name,
DEBUG(instrparser, "Instrument power set to %f\n", power);
}
+ // TODO get rid of new or delete it properly
s = new Sample(attr["name"], power);
}
@@ -117,6 +118,7 @@ void InstrumentParser::startTag(std::string name,
}
}
filechannel = filechannel - 1; // 1-based in file, but zero-based internally
+ // TODO do those next two lines correspond with proper deletes? If not fix it.
AudioFile *af = new AudioFile(path + "/" + attr["file"], filechannel);
InstrumentChannel *ch = new InstrumentChannel(attr["channel"]);
channellist.push_back(ch);