Subject: | Leaking OBJECT field in the pipeline. |
POE::Component::Pluggable still leaks objects. You can't weaken
something and then assign it, the magic is lost.
Subject: | poe-component-pluggable-patch.txt |
--- Pipeline.pm 2009-08-17 15:57:58.000000000 -0700
+++ Pipeline.pm 2009-08-17 15:58:34.000000000 -0700
@@ -10,14 +10,16 @@
sub new {
my ($package, $pluggable) = @_;
- weaken($pluggable);
-
- return bless {
+ my $self = bless {
PLUGS => {},
PIPELINE => [],
HANDLES => {},
OBJECT => $pluggable,
}, $package;
+
+ weaken($self->{OBJECT});
+
+ return $self;
}
sub push {