gmain: handle child sources being destroyed before parent
authorDan Winship <danw@gnome.org>
Wed, 18 Jul 2012 19:08:44 +0000 (15:08 -0400)
committerDan Winship <danw@gnome.org>
Wed, 18 Jul 2012 19:08:44 +0000 (15:08 -0400)
commit2357f67b1b7a9448d78e8606f10b472c595c7c90
treed8c78fdadb0ce87710b070d04f2926ddde1b5d92
parentee6e66cb4483d82fcb0657d13faebf844258c70b
gmain: handle child sources being destroyed before parent

Fix a crash when a child source is destroyed before its parent. Also,
add a test case for this and the previous fix.
glib/gmain.c
glib/tests/mainloop.c