[rhythmbox/wip/hadess/cleanups: 15/43] shell: Add g_autoptr() support for RBShell




commit 164677e1d3e9bde153d6f4e1387b71d7e0217795
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 18 16:05:29 2021 +0200

    shell: Add g_autoptr() support for RBShell

 shell/rb-shell.h | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/shell/rb-shell.h b/shell/rb-shell.h
index e784cbc18..9da7a43e9 100644
--- a/shell/rb-shell.h
+++ b/shell/rb-shell.h
@@ -101,6 +101,8 @@ struct _RBShellClass
        void     (*database_load_complete) (RBShell *shell);
 };
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(RBShell, g_object_unref)
+
 GType          rb_shell_get_type       (void);
 
 gboolean        rb_shell_present        (RBShell *shell, guint32 timestamp, GError **error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]