summaryrefslogtreecommitdiff
path: root/src/perl/perl-sources.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-14 15:59:35 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-14 15:59:35 +0000
commit369ce5d699c302fa6c856a9a5836aaf4b4b79fc2 (patch)
tree51831f015c843991848b3df13d8306d9e2eac0ee /src/perl/perl-sources.c
parent6ec7d152b064d343f541c24410385f4db836de07 (diff)
downloadirssi-369ce5d699c302fa6c856a9a5836aaf4b4b79fc2.zip
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
Diffstat (limited to 'src/perl/perl-sources.c')
-rw-r--r--src/perl/perl-sources.c1
1 files changed, 1 insertions, 0 deletions
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);