mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-29 18:36:38 +02:00
g_variant_unref: add g_return_if_fail() NULL check
Patch from Rodney Dawes.
This commit is contained in:
@@ -614,6 +614,8 @@ g_variant_is_trusted (GVariant *value)
|
||||
void
|
||||
g_variant_unref (GVariant *value)
|
||||
{
|
||||
g_return_if_fail (value != NULL);
|
||||
|
||||
if (g_atomic_int_dec_and_test (&value->ref_count))
|
||||
{
|
||||
if G_UNLIKELY (value->state & STATE_LOCKED)
|
||||
|
Reference in New Issue
Block a user