mirror of
https://github.com/irssi/irssi.git
synced 2024-09-29 04:45:57 -04:00
5c4e6304ce
The script unloading code originally worked like this: 1. Destroy package 2. Emit 'script destroyed' signal 3. Unhook script's signal handlers If a script added a 'script destroyed' signal handler, unloading that script would cause the 'script destroyed' signal to be sent to the (already destroyed) package. This would cause a script error, which would trigger a script unload, which would start the whole process over again, until we run out of heap or stack space and segfault. This commit simply reorders the operations so that the 'script destroyed' signal is sent *after* the script is fully destroyed. |
||
---|---|---|
.. | ||
core | ||
fe-common | ||
fe-fuzz | ||
fe-none | ||
fe-text | ||
irc | ||
lib-config | ||
perl | ||
common.h | ||
Makefile.am |