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:
Daiki Ueno 2023-10-19 13:47:20 +09:00
parent 92705b58a3
commit f83cd26858

View File

@ -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