1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Fix memory leaks.

This commit is contained in:
v.audacity
2011-09-29 22:10:42 +00:00
parent 17ca45dcdf
commit f2b02294b6

View File

@@ -731,6 +731,7 @@ bool Sequence::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
const wxString strValue = value;
if (!XMLValueChecker::IsGoodInt(strValue) || !strValue.ToLong(&nValue) || (nValue < 0))
{
delete (wb);
mErrorOpening = true;
return false;
}
@@ -742,6 +743,7 @@ bool Sequence::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
{
if (nValue > mMaxSamples) // mMaxSamples should already have been set by calls to the "sequence" clause below.
{
delete (wb);
mErrorOpening = true;
return false;
}