From d68dbda863c0103b4e8ea5a877e0a2a46cb04203 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Tue, 15 Sep 2020 18:23:18 +0100
Subject: [PATCH] steam-runtime-tools: Add missing g_autoptr cleanup
 declarations

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 steam-runtime-tools/desktop-entry.h | 4 ++++
 steam-runtime-tools/steam.h         | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/steam-runtime-tools/desktop-entry.h b/steam-runtime-tools/desktop-entry.h
index 795f7b7d7..fece53de0 100644
--- a/steam-runtime-tools/desktop-entry.h
+++ b/steam-runtime-tools/desktop-entry.h
@@ -48,3 +48,7 @@ const char *srt_desktop_entry_get_commandline (SrtDesktopEntry *self);
 const char *srt_desktop_entry_get_filename (SrtDesktopEntry *self);
 gboolean srt_desktop_entry_is_default_handler (SrtDesktopEntry *self);
 gboolean srt_desktop_entry_is_steam_handler (SrtDesktopEntry *self);
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (SrtDesktopEntry, g_object_unref)
+#endif
diff --git a/steam-runtime-tools/steam.h b/steam-runtime-tools/steam.h
index ad8537e3d..7a1ed871a 100644
--- a/steam-runtime-tools/steam.h
+++ b/steam-runtime-tools/steam.h
@@ -113,3 +113,7 @@ SrtSteamIssues srt_steam_get_issues (SrtSteam *self);
 const char *srt_steam_get_install_path (SrtSteam *self);
 const char *srt_steam_get_data_path (SrtSteam *self);
 const char *srt_steam_get_bin32_path (SrtSteam *self);
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (SrtSteam, g_object_unref)
+#endif
-- 
GitLab