gmain: don't leak child sources that are destroyed before their parents
authorDan Winship <danw@gnome.org>
Thu, 23 Aug 2012 16:35:20 +0000 (12:35 -0400)
committerDan Winship <danw@gnome.org>
Mon, 27 Aug 2012 11:24:07 +0000 (07:24 -0400)
commit99c7c951d99c180a5f5832d922b4f3f58380a1cd
tree379b54422366fe7416cad3913a361015c3060144
parent48a9887eae1058b055994c832b26a8ab9876db57
gmain: don't leak child sources that are destroyed before their parents

A parent source holds refs on its children, so if the child source is
destroyed, we need to drop that ref. Fix, and reorganize to make this
all more obvious.

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