diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2017-09-27 17:35:55 -0400 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2017-09-27 17:35:55 -0400 |
commit | 90c4278a35e4666e7c830fedc8826cd332a1753b (patch) | |
tree | f6625149b7e8da1573cfab7ed46c0a99523216eb /src/accounts.h | |
parent | 2b7eaa44d401a0a187917e53385d079e688f5172 (diff) | |
download | lightdm-git-90c4278a35e4666e7c830fedc8826cd332a1753b.tar.gz |
Use g_auto to automatically free memory
Diffstat (limited to 'src/accounts.h')
-rw-r--r-- | src/accounts.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/accounts.h b/src/accounts.h index ba77c0ff..ff40b25f 100644 --- a/src/accounts.h +++ b/src/accounts.h @@ -34,6 +34,8 @@ typedef struct GObjectClass parent_class; } UserClass; +G_DEFINE_AUTOPTR_CLEANUP_FUNC (User, g_object_unref); + User *accounts_get_user_by_name (const gchar *username); User *accounts_get_current_user (void); |