gmain: Unref child sources when finalising a GSource
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 25 Sep 2014 08:51:25 +0000 (09:51 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Thu, 25 Sep 2014 12:59:25 +0000 (13:59 +0100)
commit1c6df7aaeb52672c7a63517c4df271db7727b8be
treeee0810c47b65383a16b0036522b614fd0dfbc076
parenteaca86801e1ae149559ec1575cac4ef4813a255e
gmain: Unref child sources when finalising a GSource

If a GSource is created, *not* attached to a GMainContext, and then has
child sources added, dropping the last reference to the parent GSource
will leak its references to its child sources. Currently, child sources
are only unreffed when g_source_destroy() is called on the parent.

https://bugzilla.gnome.org/show_bug.cgi?id=737338
glib/gmain.c