summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-06-22 13:41:12 -0400
committerRyan Lortie <desrt@desrt.ca>2013-06-22 13:41:12 -0400
commitedf16aace4033967dd2bcf9e05beff1c62190451 (patch)
tree82dfc082336b54bfff10017b1a566bf020a99eff
parent317e8c132d1fd6373a698846932a10c443979726 (diff)
downloadglib-edf16aace4033967dd2bcf9e05beff1c62190451.tar.gz
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
-rw-r--r--gio/gdbusmethodinvocation.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gdbusmethodinvocation.c b/gio/gdbusmethodinvocation.c
index bd40aaf31..c6cab91e3 100644
--- a/gio/gdbusmethodinvocation.c
+++ b/gio/gdbusmethodinvocation.c
@@ -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'",
invocation->property_info->name, invocation->property_info->signature,
g_variant_get_type_string (nested));
+ g_variant_unref (nested);
+ goto out;
}
g_variant_unref (nested);
}