mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-25 00:50:05 +01:00
gapplication: Fix a small leak on an error handling path
This was highlighted (but not introduced) by 0144feb41fc1819cec6415483bd8a61e64373aca. Previously the test coverage didn’t cover this branch, I think. `iter` was leaked, and at this point `parameter` had never been set, so clearing it was unnecessary. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3349
This commit is contained in:
parent
d22c4574cd
commit
b9e655b4d4
@ -299,7 +299,7 @@ g_application_impl_method_call (GDBusConnection *connection,
|
||||
{
|
||||
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS,
|
||||
"Unknown action ‘%s’", name);
|
||||
g_clear_pointer (¶meter, g_variant_unref);
|
||||
g_variant_iter_free (iter);
|
||||
g_variant_unref (platform_data);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user