Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion vins_estimator/src/estimator/estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,10 @@ void Estimator::slideWindow()
{
map<double, ImageFrame>::iterator it_0;
it_0 = all_image_frame.find(t_0);
delete it_0->second.pre_integration;
if (it_0->second.pre_integration!=nullptr) {
delete it_0->second.pre_integration;
it_0->second.pre_integration = nullptr;
}
all_image_frame.erase(all_image_frame.begin(), it_0);
}
slideWindowOld();
Expand Down