summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-16 18:10:56 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:35 -0700
commit8433861900222637fbf92d308b304b4322fc37aa (patch)
treea0f5e6e5ff89af6e4903d77f08245e3512f3e727
parentd162dd3e0c416f9a9574bff94aa7048f924b30f4 (diff)
downloadlibpeas-8433861900222637fbf92d308b304b4322fc37aa.tar.gz
janitorial: move extension autocleanup into header
-rw-r--r--libpeas/peas-autocleanups.h1
-rw-r--r--libpeas/peas-extension.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/libpeas/peas-autocleanups.h b/libpeas/peas-autocleanups.h
index 2098798..d28f564 100644
--- a/libpeas/peas-autocleanups.h
+++ b/libpeas/peas-autocleanups.h
@@ -35,7 +35,6 @@ G_BEGIN_DECLS
#if GLIB_CHECK_VERSION (2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PeasEngine, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC (PeasExtension, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PeasExtensionBase, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PeasObjectModule, g_object_unref)
diff --git a/libpeas/peas-extension.h b/libpeas/peas-extension.h
index 367f5c2..4573bc0 100644
--- a/libpeas/peas-extension.h
+++ b/libpeas/peas-extension.h
@@ -47,4 +47,6 @@ G_BEGIN_DECLS
*/
typedef GObject PeasExtension;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (PeasExtension, g_object_unref)
+
G_END_DECLS