~albaguirre/mir/fix-1481034

Viewing all changes in revision 2805.

  • Committer: Tarmac
  • Author(s): Alberto Aguirre
  • Date: 2015-08-03 13:25:56 UTC
  • mfrom: (2800.1.1 dev)
  • Revision ID: tarmac-20150803132556-ay40y0njozqqup4y
Avoid calling g_source_get_context when the source is already destroyed.

If the main context has been deleted that marks the source as destroyed.
This may happen in Alarms that outlive the mainloop. Fixes: https://bugs.launchpad.net/bugs/1480420, https://bugs.launchpad.net/bugs/1480422.

Approved by Alan Griffiths, Daniel van Vugt, PS Jenkins bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: