mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +00:00
secret-service: Don't unnecessary increase refcount
As the GVariant returned in secret_service_real_prompt_finish should be already sunk by secret_prompt_perform_finish, calling g_variant_ref_sink actually increases the refcount and causes a leak. Signed-off-by: Daiki Ueno <dueno@src.gnome.org>
This commit is contained in:
parent
92705b58a3
commit
f83cd26858
@ -372,7 +372,7 @@ secret_service_real_prompt_finish (SecretService *self,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return g_variant_ref_sink (retval);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user