From 369ce5d699c302fa6c856a9a5836aaf4b4b79fc2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 14 Dec 2001 15:59:35 +0000 Subject: [PATCH] perl_timeout_add() didn't add the script pointer to the source record, so unloading scripts didn't remove the timeouts. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2245 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/perl/perl-sources.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/perl/perl-sources.c b/src/perl/perl-sources.c index 7718b871..cedc472c 100644 --- a/src/perl/perl-sources.c +++ b/src/perl/perl-sources.c @@ -102,6 +102,7 @@ int perl_timeout_add(int msecs, SV *func, SV *data) rec = g_new0(PERL_SOURCE_REC, 1); perl_source_ref(rec); + rec->script = script; rec->func = perl_func_sv_inc(func, pkg); rec->data = SvREFCNT_inc(data); rec->tag = g_timeout_add(msecs, (GSourceFunc) perl_source_event, rec);