So when your instance goes out of scope it's refcount should reach 0 and be released.# declare stuff package stuff here ... use WeakRef; sub new { my($class, $session) = @_ my $self = { }; bless($self, $class); weaken($self->{'session'} = $session); }
broquaint
In reply to Re: Is this a Memory leak ?
by broquaint
in thread Is this a Memory leak ?
by ropey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |