summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-27 23:46:20 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-27 23:46:20 +0000
commitec8c613101dd9185b5715e3ce156cc66573960d4 (patch)
treed37f694113cdcb45d39ab08efa8348cf77b7037d /src/core
parent29c8c6e1cdb4b11ce4b352363f49d27cde10d8ad (diff)
downloadirssi-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.c3
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);