summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKT-lcz <54447789+KT-lcz@users.noreply.github.com>2021-06-16 10:24:42 +0800
committerRobert Ancell <robert.ancell@gmail.com>2021-06-25 14:04:08 +1200
commita02b4ee578f99a9c34fc98f2a4a4cde2f2a25053 (patch)
treeed2c3c615076deea577cb4f6ac8cbb3436d04c55
parent98ed207cd9ffdac9e7443c26ede716d3f074760b (diff)
downloadlightdm-git-master.tar.gz
fix: use g_autofree in x_authority_loadmaster
add g_autofree before `guint8 *xauth_data;`
-rw-r--r--tests/src/x-authority.c2
1 files changed, 1 insertions, 1 deletions
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;