1
0
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:
ailin-nemui 2017-03-02 09:46:01 +01:00 committed by GitHub
commit 647ef193a8

View File

@ -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);