mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-18 01:46:08 +08:00
Proposed fix for node clear in unlink_after(TLink& node)
This commit is contained in:
parent
554c4a7e56
commit
64cdbcd5ea
@ -289,12 +289,13 @@ namespace etl
|
||||
{
|
||||
if (node.etl_next != nullptr)
|
||||
{
|
||||
node.etl_next = node.etl_next->etl_next;
|
||||
TLink* old_next = node.etl_next;
|
||||
node.etl_next = old_next->etl_next;
|
||||
|
||||
if ((int(TLink::OPTION) == etl::link_option::AUTO) ||
|
||||
(int(TLink::OPTION) == etl::link_option::CHECKED))
|
||||
{
|
||||
node.clear();
|
||||
old_next.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user