mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
better way to check if UNLOAD exists
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2883 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0f8a81fdb1
commit
7c92a27256
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ sub is_static {
|
|||
}
|
||||
|
||||
sub destroy {
|
||||
eval { $_[0]->UNLOAD; };
|
||||
$_[0]->UNLOAD() if $_[0]->can('UNLOAD');
|
||||
Symbol::delete_package($_[0]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue