Install an invalidation notifier for GClosure in g_source_set_closure()
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 3 Jan 2013 21:53:06 +0000 (22:53 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 20 Jan 2013 15:23:32 +0000 (16:23 +0100)
commit1ce415b45bde895c31dd32e2f7ab7e7ab79e735e
tree3912dfae3b14b3eceb8db881ea615f9feaac7d1f
parente68402e330b977fb6324af6eca7ccf612b0e8b9c
Install an invalidation notifier for GClosure in g_source_set_closure()

The point of g_source_set_closure() is getting memory management right,
including handling closures disappearing from the outside (for example
because a runtime they refer to is being shutdown). This means that
sources with an associated closure should remove themselves from the
main loop and free memory when the closure is invalidated.

https://bugzilla.gnome.org/show_bug.cgi?id=692034
gobject/gsourceclosure.c