aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-05-31 00:02:56 +0200
committerFurkan Sahin <furkan-dev@proton.me>2025-05-31 00:02:56 +0200
commit1a156d44c6ed5d45219595ed72f5f0bb0271d2d5 (patch)
tree1e2e008557dff79457d2480d4701338cf885f9ae /include
parentd2ef57e60c89c7cb3c652a932de37fd560b9addd (diff)
tree/container: Remove child from all lists
When a container is detached, we need to remove it from any lists it may be part of. We use container_get_siblings to obtain the relevant list, find our entry and remove it. If the container is in a later list than the one returned by container_get_siblings, or is in multiple lists for some reason, container_detach will fail to remove the container, leaving a dangling pointer when the container is freed. Instead of calling container_get_siblings, check and remove the container from all lists.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions