1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-11 15:16:27 +01:00

Fix memory leak in CalculateSpaceUsage

Memory leak was caused by diagnostics.
This commit is contained in:
James Crook
2016-08-18 21:50:34 +01:00
parent df1f69850e
commit af61389322

View File

@@ -71,7 +71,7 @@ UndoManager::~UndoManager()
void UndoManager::CalculateSpaceUsage()
{
TIMER_START( "CalculateSpaceUsage", space_calc );
//TIMER_START( "CalculateSpaceUsage", space_calc );
TrackListOfKindIterator iter(Track::Wave);
space.clear();
@@ -118,7 +118,7 @@ void UndoManager::CalculateSpaceUsage()
}
}
TIMER_STOP( space_calc );
//TIMER_STOP( space_calc );
}
wxLongLong_t UndoManager::GetLongDescription(unsigned int n, wxString *desc,