https://issues.dlang.org/show_bug.cgi?id=12915

--- Comment #3 from Steven Schveighoffer <[email protected]> ---
OK, I misunderstood. I thought the issue was that the red black tree itself was
being pointed at, and that was causing the leak.

We certainly can null pointers as the nodes are deallocated. But the tree does
not go through and destroy all the nodes if you just forget the tree (and I
would argue it shouldn't). So this may solve the specific use case, but not the
general one.

--

Reply via email to