summaryrefslogtreecommitdiff
path: root/gdata
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2021-02-11 15:24:07 +0100
committerOndrej Holy <oholy@redhat.com>2021-02-11 15:32:07 +0100
commitc15daee6bc676e1dbeb2dba7e53d794565509da2 (patch)
tree7e4449de1fc070b8e96889654628fb383537f347 /gdata
parent87a876dcaf47b99a83b49b4c04a9fd2b4e21ea47 (diff)
downloadlibgdata-c15daee6bc676e1dbeb2dba7e53d794565509da2.tar.gz
core: Define G_DEFINE_AUTOPTR_CLEANUP_FUNC for GDataQuery
The cleanup function is not defined for GDataQuery, which prevents G_DECLARE_DERIVABLE_TYPE use for its subclasses. Let's define it so G_DECLARE_DERIVABLE_TYPE can be used in the subsequent commits.
Diffstat (limited to 'gdata')
-rw-r--r--gdata/gdata-query.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdata/gdata-query.h b/gdata/gdata-query.h
index f80cc8c0..52796a4d 100644
--- a/gdata/gdata-query.h
+++ b/gdata/gdata-query.h
@@ -66,6 +66,7 @@ typedef struct {
} GDataQueryClass;
GType gdata_query_get_type (void) G_GNUC_CONST;
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GDataQuery, g_object_unref)
GDataQuery *gdata_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
GDataQuery *gdata_query_new_with_limits (const gchar *q, guint start_index, guint max_results) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;