summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/perl/irssi-core.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/perl/irssi-core.pl b/src/perl/irssi-core.pl
index f4f5ab54..e103897a 100644
--- a/src/perl/irssi-core.pl
+++ b/src/perl/irssi-core.pl
@@ -13,6 +13,7 @@ sub is_static {
}
sub destroy {
+ eval { $_[0]->UNLOAD; };
Symbol::delete_package($_[0]);
}