minor cleanup
parent
9c712402f3
commit
2a5d643285
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue