Göran Jönsson e050541f11 watchdog: Only create a new GSource if we have a main context
We can still get OOB events while stopping the watchdog element, and while
stopping it we destroy the main context.

Also let the GSource own a reference to the element for additional safety.

https://bugzilla.gnome.org/show_bug.cgi?id=732554
2014-07-01 19:41:36 +02:00
..
2012-11-04 00:09:59 +00:00
2012-11-04 00:09:59 +00:00
2012-11-04 00:09:59 +00:00
2012-11-04 00:09:59 +00:00
2012-11-04 00:09:59 +00:00
2012-11-04 00:09:59 +00:00
2012-11-04 00:09:59 +00:00
2012-11-04 00:09:59 +00:00
2012-11-04 00:09:59 +00:00
2013-03-27 15:31:21 -07:00