summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-08-25 15:44:48 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-08-25 15:44:48 +0000
commit0f8a81fdb11fbffb6f06ae5aa34503deda37be75 (patch)
treea9abd990860211d99b3325e6b2e336d174cbb464
parent0c359be8e517e67edfff099fc16343d99c578ce2 (diff)
downloadirssi-0f8a81fdb11fbffb6f06ae5aa34503deda37be75.zip
UNLOAD method is called now for all scripts before they're destroyed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2882 dbcabf3a-b0e7-0310-adc4-f8d773084564
-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]);
}