summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/xserver/OpenSLX/Distro/Base.pm
diff options
context:
space:
mode:
Diffstat (limited to 'os-plugins/plugins/xserver/OpenSLX/Distro/Base.pm')
-rw-r--r--os-plugins/plugins/xserver/OpenSLX/Distro/Base.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/os-plugins/plugins/xserver/OpenSLX/Distro/Base.pm b/os-plugins/plugins/xserver/OpenSLX/Distro/Base.pm
index 1cd26b56..b0fc67e3 100644
--- a/os-plugins/plugins/xserver/OpenSLX/Distro/Base.pm
+++ b/os-plugins/plugins/xserver/OpenSLX/Distro/Base.pm
@@ -20,6 +20,7 @@ our $VERSION = 1.01; # API-version . implementation-version
use File::Basename;
use File::Path;
+use Scalar::Util qw( weaken );
use OpenSLX::Basics;
use OpenSLX::Utils;
@@ -38,6 +39,8 @@ sub initialize
{
my $self = shift;
$self->{engine} = shift;
+ weaken($self->{engine});
+ # avoid circular reference between plugin and its engine
return 1;
}