diff options
author | Yi-Soo An <yisooan@gmail.com> | 2018-07-24 14:00:25 +0900 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2018-10-31 15:40:40 +0100 |
commit | c45ca5f18353f608f238f539b3b1647127473775 (patch) | |
tree | 124c99c047788b3f25ff5800bd901b10dfe70898 /gfbgraph | |
parent | 07cc6a76b4b58de0f13fa345dd8f3b7d357d2776 (diff) | |
download | libgfbgraph-c45ca5f18353f608f238f539b3b1647127473775.tar.gz |
album: 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
Diffstat (limited to 'gfbgraph')
-rw-r--r-- | gfbgraph/gfbgraph-album.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gfbgraph/gfbgraph-album.h b/gfbgraph/gfbgraph-album.h index 88eb0c2..e0528fb 100644 --- a/gfbgraph/gfbgraph-album.h +++ b/gfbgraph/gfbgraph-album.h @@ -36,6 +36,8 @@ typedef struct _GFBGraphAlbum GFBGraphAlbum; typedef struct _GFBGraphAlbumClass GFBGraphAlbumClass; typedef struct _GFBGraphAlbumPrivate GFBGraphAlbumPrivate; +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFBGraphAlbum, g_object_unref) + struct _GFBGraphAlbum { GFBGraphNode parent; |