gmain: Fix reference leak of GMainLoop in some situations
When calling g_main_loop_run()
it’s possible for a reference to the
GMainLoop
to leak if this thread had to wait to acquire ownership of
the GMainContext
.
Signed-off-by: Philip Withnall pwithnall@endlessos.org
Fixes: #2598 (closed)
Closes #2598 (closed)