From c15daee6bc676e1dbeb2dba7e53d794565509da2 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Thu, 11 Feb 2021 15:24:07 +0100 Subject: 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. --- gdata/gdata-query.h | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.1