From a02b4ee578f99a9c34fc98f2a4a4cde2f2a25053 Mon Sep 17 00:00:00 2001 From: KT-lcz <54447789+KT-lcz@users.noreply.github.com> Date: Wed, 16 Jun 2021 10:24:42 +0800 Subject: fix: use g_autofree in x_authority_load add g_autofree before `guint8 *xauth_data;` --- tests/src/x-authority.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/x-authority.c b/tests/src/x-authority.c index e63a051f..f1b882e3 100644 --- a/tests/src/x-authority.c +++ b/tests/src/x-authority.c @@ -33,7 +33,7 @@ x_authority_load (XAuthority *authority, const gchar *filename, GError **error) { XAuthorityPrivate *priv = x_authority_get_instance_private (authority); - guint8 *xauth_data; + g_autofree guint8 *xauth_data; gsize xauth_length; if (!g_file_get_contents (filename, (gchar **) &xauth_data, &xauth_length, error)) return FALSE; -- cgit v1.2.1