summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-04-15 14:10:26 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-04-15 14:10:26 +0000
commit8f63d1e86f5530b13b190654181ab241d850ccf7 (patch)
tree767c044dc2bdbbafcf95f83e16ee9ead324e090d /src/core
parent53d595ba7fd05f392853c1c6cb3c58b03949a247 (diff)
downloadirssi-8f63d1e86f5530b13b190654181ab241d850ccf7.zip
display the refcount properly when complaining that signal is still
referenced git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2684 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/signals.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/signals.c b/src/core/signals.c
index c7f1ace3..512e047d 100644
--- a/src/core/signals.c
+++ b/src/core/signals.c
@@ -389,8 +389,9 @@ void signals_init(void)
static void signal_free(void *key, Signal *rec)
{
+ /* refcount-1 because we just referenced it ourself */
g_warning("signal_free(%s) : signal still has %d references:",
- signal_get_id_str(rec->id), rec->refcount);
+ signal_get_id_str(rec->id), rec->refcount-1);
while (rec->hooks != NULL) {
g_warning(" - module '%s' function %p",