diff options
author | Yi-Soo An <yisooan@gmail.com> | 2018-07-24 14:04:37 +0900 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2018-10-31 15:41:03 +0100 |
commit | 1e3b3bbab508360302c1fb056157d07f221ef85a (patch) | |
tree | 8a7285316e81223edc3b83a725bbd48d82a14b0d | |
parent | e94f6b04dd8800296a6a465677d95f6aec040104 (diff) | |
download | libgfbgraph-1e3b3bbab508360302c1fb056157d07f221ef85a.tar.gz |
user: 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-user.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gfbgraph/gfbgraph-user.h b/gfbgraph/gfbgraph-user.h index 722d366..312b1f0 100644 --- a/gfbgraph/gfbgraph-user.h +++ b/gfbgraph/gfbgraph-user.h @@ -38,6 +38,8 @@ typedef struct _GFBGraphUser GFBGraphUser; typedef struct _GFBGraphUserClass GFBGraphUserClass; typedef struct _GFBGraphUserPrivate GFBGraphUserPrivate; +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFBGraphUser, g_object_unref) + struct _GFBGraphUser { GFBGraphNode parent; |