mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #661 from Stevie-O/master
Fix Segfault when unloading a script that registers for 'script destroyed' signals Closes #660
This commit is contained in:
commit
647ef193a8
@ -67,11 +67,11 @@ static void perl_script_destroy(PERL_SCRIPT_REC *script)
|
||||
{
|
||||
perl_scripts = g_slist_remove(perl_scripts, script);
|
||||
|
||||
signal_emit("script destroyed", 1, script);
|
||||
|
||||
perl_signal_remove_script(script);
|
||||
perl_source_remove_script(script);
|
||||
|
||||
signal_emit("script destroyed", 1, script);
|
||||
|
||||
g_free(script->name);
|
||||
g_free(script->package);
|
||||
g_free_not_null(script->path);
|
||||
|
Loading…
Reference in New Issue
Block a user