mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-11 22:27:42 +02:00
Fix memory leak in WriteXML
Memory leak was caused by diagnostics.
This commit is contained in:
parent
1cfffdb25a
commit
df1f69850e
@ -3339,7 +3339,7 @@ void AudacityProject::WriteXMLHeader(XMLWriter &xmlFile)
|
|||||||
|
|
||||||
void AudacityProject::WriteXML(XMLWriter &xmlFile)
|
void AudacityProject::WriteXML(XMLWriter &xmlFile)
|
||||||
{
|
{
|
||||||
TIMER_START( "AudacityProject::WriteXML", xml_writer_timer );
|
//TIMER_START( "AudacityProject::WriteXML", xml_writer_timer );
|
||||||
// Warning: This block of code is duplicated in Save, for now...
|
// Warning: This block of code is duplicated in Save, for now...
|
||||||
wxString project = mFileName;
|
wxString project = mFileName;
|
||||||
if (project.Len() > 4 && project.Mid(project.Len() - 4) == wxT(".aup"))
|
if (project.Len() > 4 && project.Mid(project.Len() - 4) == wxT(".aup"))
|
||||||
@ -3436,7 +3436,7 @@ void AudacityProject::WriteXML(XMLWriter &xmlFile)
|
|||||||
// recording log data to the end of the file later
|
// recording log data to the end of the file later
|
||||||
xmlFile.EndTag(wxT("project"));
|
xmlFile.EndTag(wxT("project"));
|
||||||
}
|
}
|
||||||
TIMER_STOP( xml_writer_timer );
|
//TIMER_STOP( xml_writer_timer );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user