Merge branch '3054-context-return' into 'main'

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

Closes #3054

See merge request GNOME/glib!3501
This commit is contained in:
Marco Trevisan 2023-07-18 10:57:32 +00:00
commit 674f2a030c

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 */