gmain: fix double-unlock in g_main_context_unref()
authorDan Winship <danw@gnome.org>
Wed, 10 Apr 2013 15:39:12 +0000 (11:39 -0400)
committerDan Winship <danw@gnome.org>
Wed, 10 Apr 2013 15:39:12 +0000 (11:39 -0400)
commit0513c855cba69b96e4c9d2200719249a8a0c586e
tree50759310fd1cd1e0e7f1055bfccb1619469b79d3
parent74ed1cf5b0538f71ae566219c14b6a1b954c1a74
gmain: fix double-unlock in g_main_context_unref()

When unreffing a context with sources still attached, it would end up
unlocking an already-unlocked context, causing crashes on platforms
that (unlike Linux) actually check for that.

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