mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
6ec7d152b0
commit
369ce5d699
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user