summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi-Soo An <yisooan@gmail.com>2018-07-12 15:31:45 +0900
committerVictor Toso <me@victortoso.com>2018-07-13 11:46:36 +0200
commit6b49c5e9b16309ce99d1f4d72e09ffb3acf3cc72 (patch)
tree52ae87f54c6568e7916a8b1550d8c7121d1ef17f
parente1a8991e0ff6c011b1b6fcad93f772674afeab6e (diff)
downloadgrilo-6b49c5e9b16309ce99d1f4d72e09ffb3acf3cc72.tar.gz
plugin: Add G_DEFINE_AUTOPTR_CLEANUP_FUNC
To support g_autoptr, it is added. https://gitlab.gnome.org/GNOME/grilo/merge_requests/10
-rw-r--r--src/grl-plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/grl-plugin.h b/src/grl-plugin.h
index 5273d6e..ee81bcd 100644
--- a/src/grl-plugin.h
+++ b/src/grl-plugin.h
@@ -75,6 +75,8 @@
typedef struct _GrlPlugin GrlPlugin;
typedef struct _GrlPluginPrivate GrlPluginPrivate;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GrlPlugin, g_object_unref)
+
struct _GrlPlugin {
GObject parent;