summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi-Soo An <yisooan@gmail.com>2018-07-24 14:01:37 +0900
committerDebarshi Ray <debarshir@gnome.org>2018-10-31 15:40:53 +0100
commit8323ad19ca3af72899cbd93a498e94460fa90376 (patch)
treef870c655c62b5fee453f5fdb6ca6a66ab38bccdf
parentc45ca5f18353f608f238f539b3b1647127473775 (diff)
downloadlibgfbgraph-8323ad19ca3af72899cbd93a498e94460fa90376.tar.gz
node: Support g_autoptr
The presence of a priv pointer prevents the use of G_DECLARE_DERIVABLE_TYPE. https://gitlab.gnome.org/GNOME/libgfbgraph/merge_requests/1
-rw-r--r--gfbgraph/gfbgraph-node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfbgraph/gfbgraph-node.h b/gfbgraph/gfbgraph-node.h
index 95da121..c177a82 100644
--- a/gfbgraph/gfbgraph-node.h
+++ b/gfbgraph/gfbgraph-node.h
@@ -38,6 +38,8 @@ typedef struct _GFBGraphNode GFBGraphNode;
typedef struct _GFBGraphNodeClass GFBGraphNodeClass;
typedef struct _GFBGraphNodePrivate GFBGraphNodePrivate;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFBGraphNode, g_object_unref)
+
struct _GFBGraphNode {
GObject parent;