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




commit 4e55c374a8addd7ed8ded7accce5dd2c6ca5ff7f
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]