mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
GDBusMethodInvocation: add missing 'goto out'
We do a bunch of new validity checks for return values in response to calls on the D-Bus property API but we miss the 'goto out' in one case. Add it. https://bugzilla.gnome.org/show_bug.cgi?id=698375
This commit is contained in:
parent
317e8c132d
commit
edf16aace4
@ -444,6 +444,8 @@ g_dbus_method_invocation_return_value_internal (GDBusMethodInvocation *invocatio
|
|||||||
g_warning ("Value returned from property 'Get' call for '%s' should be '%s' but is '%s'",
|
g_warning ("Value returned from property 'Get' call for '%s' should be '%s' but is '%s'",
|
||||||
invocation->property_info->name, invocation->property_info->signature,
|
invocation->property_info->name, invocation->property_info->signature,
|
||||||
g_variant_get_type_string (nested));
|
g_variant_get_type_string (nested));
|
||||||
|
g_variant_unref (nested);
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
g_variant_unref (nested);
|
g_variant_unref (nested);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user