summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi-Soo An <yisooan@gmail.com>2018-07-24 14:00:25 +0900
committerDebarshi Ray <debarshir@gnome.org>2018-10-31 15:40:40 +0100
commitc45ca5f18353f608f238f539b3b1647127473775 (patch)
tree124c99c047788b3f25ff5800bd901b10dfe70898
parent07cc6a76b4b58de0f13fa345dd8f3b7d357d2776 (diff)
downloadlibgfbgraph-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
-rw-r--r--gfbgraph/gfbgraph-album.h2
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;