diff options
author | Timo Sirainen <cras@irssi.org> | 2000-09-27 23:46:20 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-09-27 23:46:20 +0000 |
commit | ec8c613101dd9185b5715e3ce156cc66573960d4 (patch) | |
tree | d37f694113cdcb45d39ab08efa8348cf77b7037d /src/core | |
parent | 29c8c6e1cdb4b11ce4b352363f49d27cde10d8ad (diff) | |
download | irssi-ec8c613101dd9185b5715e3ce156cc66573960d4.zip |
module deinit fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@686 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/signals.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/signals.c b/src/core/signals.c index 7b309785..2951f471 100644 --- a/src/core/signals.c +++ b/src/core/signals.c @@ -316,6 +316,9 @@ static void signal_remove_module(void *signal, SIGNAL_REC *rec, const char *modu signal_id = GPOINTER_TO_INT(signal); for (list = 0; list < SIGNAL_LISTS; list++) { + if (rec->modulelist[list] == NULL) + continue; + for (index = 0; index < rec->modulelist[list]->len; index++) { if (g_strcasecmp(g_ptr_array_index(rec->modulelist[list], index), module) == 0) signal_remove_from_list(rec, signal_id, list, index); |