gmain: Add a missing return on error path in g_main_context_release()

This should have been in commit
3926af723a.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #3054
This commit is contained in:
Philip Withnall 2023-07-18 11:31:01 +01:00
parent 741a561c4d
commit c67dd9d3fe

View File

@ -3608,6 +3608,7 @@ g_main_context_release (GMainContext *context)
g_critical ("g_main_context_release() called on a context (%p, owner %p, "
"owner count %u) which is not acquired by the current thread",
context, context_owner, context_owner_count);
return;
}
#endif /* !G_DISABLE_CHECKS */