mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue