mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +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 NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return g_variant_ref_sink (retval);
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user