minor cleanup

v1
Brett 2023-10-05 01:55:15 -04:00
parent 9c712402f3
commit 2a5d643285
1 changed files with 2 additions and 4 deletions

View File

@ -202,10 +202,7 @@ namespace blt
profile_t::~profile_t() profile_t::~profile_t()
{ {
for (auto* p : intervals) blt::clearProfile(*this);
delete p;
for (auto* p : cycle_intervals)
delete p;
} }
/** /**
@ -238,6 +235,7 @@ namespace blt
profile_t profile{profile_name}; profile_t profile{profile_name};
for (const auto& i : pref) for (const auto& i : pref)
profile.intervals.push_back(i.second); profile.intervals.push_back(i.second);
blt::writeProfile(stream, profile);
profiles.erase(profile_name); profiles.erase(profile_name);
} }