GNOME Bugzilla – Bug 567078
Don't keep an extra reference to closures
Last modified: 2009-01-08 21:32:52 UTC
There's no need to hold an extra reference to closures ourselves; the user of the closure (the signal system say), will keep the closure referenced as long as it can be invoked. Since invalidation notifiers are typically only called when the closure is finalized, this was causing almost all closures (and the referenced JS objects) to be leaked, since a referenced closure would never be finalized or invalidated.
Created attachment 126055 [details] [review] Don't keep an extra reference to closures
Committed, thanks.