mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
perl: fix context used after unload of a script
This commit is contained in:
@@ -538,6 +538,10 @@ weechat_perl_unload (struct t_plugin_script *script)
|
||||
perl_destruct (interpreter);
|
||||
perl_free (interpreter);
|
||||
}
|
||||
if (perl_current_script)
|
||||
{
|
||||
PERL_SET_CONTEXT (perl_current_script->interpreter);
|
||||
}
|
||||
#else
|
||||
if (interpreter)
|
||||
free (interpreter);
|
||||
|
||||
Reference in New Issue
Block a user