tests: fix leak in mainloop test
authorRyan Lortie <desrt@desrt.ca>
Mon, 25 Mar 2013 01:55:08 +0000 (21:55 -0400)
committerStef Walter <stefw@gnome.org>
Wed, 6 Nov 2013 09:12:50 +0000 (10:12 +0100)
commit92b71825fd6b62e339b89159b2cfba8e5ca839c4
tree9a89e79a3a117a4f09801f33f13046c131cf3a12
parenteef0d3c0b8ca541e48a8a9d7ec39ed40a717db6f
tests: fix leak in mainloop test

Properly unref a pair of GSources in the unix-fd mainloop test.

valgrind was reporting these as 'still reachable' before (possibly due
to some residual pointers somewhere in memory), but when running with
G_DEBUG=cleanup they were properly reported as leaked.
glib/tests/mainloop.c