Skip to content

Commit

Permalink
polish new list creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteven4 committed Jul 22, 2023
1 parent d0bd0fd commit 4ff119c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions duplicate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,10 @@ void DuplicateFilter::process()
waypt_swap(oldlist);

for (Waypoint* wpt : qAsConst(oldlist)) {
if (wpt->extra_data != nullptr) {
delete wpt;
} else {
wpt->extra_data = nullptr;
if (wpt->extra_data == nullptr) {
waypt_add(wpt);
} else {
delete wpt;
}
}
}
Expand Down

0 comments on commit 4ff119c

Please sign in to comment.