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/session-config.h | |
parent | 2b7eaa44d401a0a187917e53385d079e688f5172 (diff) | |
download | lightdm-git-90c4278a35e4666e7c830fedc8826cd332a1753b.tar.gz |
Use g_auto to automatically free memory
Diffstat (limited to 'src/session-config.h')
-rw-r--r-- | src/session-config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session-config.h b/src/session-config.h index 8a86a5fb..fac72eb5 100644 --- a/src/session-config.h +++ b/src/session-config.h @@ -34,6 +34,8 @@ typedef struct GObjectClass parent_class; } SessionConfigClass; +G_DEFINE_AUTOPTR_CLEANUP_FUNC (SessionConfig, g_object_unref); + GType session_config_get_type (void); SessionConfig *session_config_new_from_file (const gchar *filename, const gchar *default_session_type, GError **error); |