Weak references "die" as soon as no other reference to the object exists, so you have to weaken something to which initially two references exist (which is class Top, which is referenced in main and and Bottom).
In reply to Re: Memory leaks and circular references
by moritz
in thread Memory leaks and circular references
by jdrago_999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |