[libgdata] [core] Add G_GNUC_MALLOC to all functions returning allocated data



commit f98aed130bb2275ab4ea50aaec6016562aa54a3a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Apr 1 22:58:46 2010 +0100

    [core] Add G_GNUC_MALLOC to all functions returning allocated data
    
    This is in addition to G_GNUC_WARN_UNUSED_RESULT, so that we get the benefit
    of compiler aliasing optimisations, plus a reminder to not discard returned
    values without freeing/unreffing them.

 gdata/atom/gdata-author.h                          |    2 +-
 gdata/atom/gdata-category.h                        |    2 +-
 gdata/atom/gdata-link.h                            |    2 +-
 gdata/gcontact/gdata-gcontact-calendar.h           |    2 +-
 gdata/gcontact/gdata-gcontact-event.h              |    3 +-
 gdata/gcontact/gdata-gcontact-jot.h                |    2 +-
 gdata/gcontact/gdata-gcontact-relation.h           |    3 +-
 gdata/gcontact/gdata-gcontact-website.h            |    2 +-
 gdata/gd/gdata-gd-email-address.h                  |    2 +-
 gdata/gd/gdata-gd-im-address.h                     |    2 +-
 gdata/gd/gdata-gd-name.h                           |    2 +-
 gdata/gd/gdata-gd-organization.h                   |    2 +-
 gdata/gd/gdata-gd-phone-number.h                   |    2 +-
 gdata/gd/gdata-gd-postal-address.h                 |    3 +-
 gdata/gd/gdata-gd-reminder.h                       |    2 +-
 gdata/gd/gdata-gd-when.h                           |    2 +-
 gdata/gd/gdata-gd-where.h                          |    2 +-
 gdata/gd/gdata-gd-who.h                            |    3 +-
 gdata/gdata-access-handler.h                       |    6 ++--
 gdata/gdata-access-rule.h                          |    2 +-
 gdata/gdata-buffer.h                               |    2 +-
 gdata/gdata-download-stream.h                      |    2 +-
 gdata/gdata-entry.h                                |    4 +-
 gdata/gdata-parsable.h                             |    4 +-
 gdata/gdata-parser.h                               |    4 +-
 gdata/gdata-private.h                              |   16 ++++++++-----
 gdata/gdata-query.h                                |    6 ++--
 gdata/gdata-service.h                              |   19 +++++++++------
 gdata/gdata-types.h                                |    2 +-
 gdata/gdata-upload-stream.h                        |    2 +-
 gdata/media/gdata-media-category.h                 |    2 +-
 gdata/media/gdata-media-content.h                  |    4 ++-
 gdata/media/gdata-media-thumbnail.h                |    4 ++-
 gdata/services/calendar/gdata-calendar-calendar.h  |    2 +-
 gdata/services/calendar/gdata-calendar-event.h     |    2 +-
 gdata/services/calendar/gdata-calendar-query.h     |    4 +-
 gdata/services/calendar/gdata-calendar-service.h   |   10 ++++----
 gdata/services/contacts/gdata-contacts-contact.h   |    6 ++--
 gdata/services/contacts/gdata-contacts-query.h     |    4 +-
 gdata/services/contacts/gdata-contacts-service.h   |    8 +++---
 gdata/services/documents/gdata-documents-entry.h   |    2 +-
 gdata/services/documents/gdata-documents-folder.h  |    2 +-
 .../documents/gdata-documents-presentation.h       |    7 +++--
 gdata/services/documents/gdata-documents-query.h   |    4 +-
 gdata/services/documents/gdata-documents-service.h |   16 ++++++------
 .../documents/gdata-documents-spreadsheet.h        |    6 ++--
 gdata/services/documents/gdata-documents-text.h    |    6 ++--
 gdata/services/picasaweb/gdata-picasaweb-album.h   |    2 +-
 gdata/services/picasaweb/gdata-picasaweb-file.h    |    2 +-
 gdata/services/picasaweb/gdata-picasaweb-query.h   |    4 +-
 gdata/services/picasaweb/gdata-picasaweb-service.h |   24 ++++++++++---------
 gdata/services/youtube/gdata-youtube-query.h       |    2 +-
 gdata/services/youtube/gdata-youtube-service.h     |   10 ++++----
 gdata/services/youtube/gdata-youtube-video.h       |    4 +-
 54 files changed, 132 insertions(+), 114 deletions(-)
---
diff --git a/gdata/atom/gdata-author.h b/gdata/atom/gdata-author.h
index 32e0793..7a625af 100644
--- a/gdata/atom/gdata-author.h
+++ b/gdata/atom/gdata-author.h
@@ -60,7 +60,7 @@ typedef struct {
 
 GType gdata_author_get_type (void) G_GNUC_CONST;
 
-GDataAuthor *gdata_author_new (const gchar *name, const gchar *uri, const gchar *email_address) G_GNUC_WARN_UNUSED_RESULT;
+GDataAuthor *gdata_author_new (const gchar *name, const gchar *uri, const gchar *email_address) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_author_compare (const GDataAuthor *a, const GDataAuthor *b);
 
 const gchar *gdata_author_get_name (GDataAuthor *self);
diff --git a/gdata/atom/gdata-category.h b/gdata/atom/gdata-category.h
index 4138971..226da82 100644
--- a/gdata/atom/gdata-category.h
+++ b/gdata/atom/gdata-category.h
@@ -60,7 +60,7 @@ typedef struct {
 
 GType gdata_category_get_type (void) G_GNUC_CONST;
 
-GDataCategory *gdata_category_new (const gchar *term, const gchar *scheme, const gchar *label) G_GNUC_WARN_UNUSED_RESULT;
+GDataCategory *gdata_category_new (const gchar *term, const gchar *scheme, const gchar *label) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_category_compare (const GDataCategory *a, const GDataCategory *b);
 
 const gchar *gdata_category_get_term (GDataCategory *self);
diff --git a/gdata/atom/gdata-link.h b/gdata/atom/gdata-link.h
index c948ac4..c4fa0d6 100644
--- a/gdata/atom/gdata-link.h
+++ b/gdata/atom/gdata-link.h
@@ -144,7 +144,7 @@ typedef struct {
 
 GType gdata_link_get_type (void) G_GNUC_CONST;
 
-GDataLink *gdata_link_new (const gchar *uri, const gchar *relation_type) G_GNUC_WARN_UNUSED_RESULT;
+GDataLink *gdata_link_new (const gchar *uri, const gchar *relation_type) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_link_compare (const GDataLink *a, const GDataLink *b);
 
 const gchar *gdata_link_get_uri (GDataLink *self);
diff --git a/gdata/gcontact/gdata-gcontact-calendar.h b/gdata/gcontact/gdata-gcontact-calendar.h
index cfc6427..7eb3777 100644
--- a/gdata/gcontact/gdata-gcontact-calendar.h
+++ b/gdata/gcontact/gdata-gcontact-calendar.h
@@ -99,7 +99,7 @@ typedef struct {
 GType gdata_gcontact_calendar_get_type (void) G_GNUC_CONST;
 
 GDataGContactCalendar *gdata_gcontact_calendar_new (const gchar *uri, const gchar *relation_type,
-                                                    const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT;
+                                                    const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gcontact_calendar_compare (const GDataGContactCalendar *a, const GDataGContactCalendar *b);
 
 const gchar *gdata_gcontact_calendar_get_uri (GDataGContactCalendar *self);
diff --git a/gdata/gcontact/gdata-gcontact-event.h b/gdata/gcontact/gdata-gcontact-event.h
index 6a9caf0..bbe0a99 100644
--- a/gdata/gcontact/gdata-gcontact-event.h
+++ b/gdata/gcontact/gdata-gcontact-event.h
@@ -86,7 +86,8 @@ typedef struct {
 
 GType gdata_gcontact_event_get_type (void) G_GNUC_CONST;
 
-GDataGContactEvent *gdata_gcontact_event_new (const GDate *date, const gchar *relation_type, const gchar *label) G_GNUC_WARN_UNUSED_RESULT;
+GDataGContactEvent *gdata_gcontact_event_new (const GDate *date, const gchar *relation_type,
+                                              const gchar *label) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 void gdata_gcontact_event_get_date (GDataGContactEvent *self, GDate *date);
 void gdata_gcontact_event_set_date (GDataGContactEvent *self, const GDate *date);
diff --git a/gdata/gcontact/gdata-gcontact-jot.h b/gdata/gcontact/gdata-gcontact-jot.h
index b4e4217..2eb8988 100644
--- a/gdata/gcontact/gdata-gcontact-jot.h
+++ b/gdata/gcontact/gdata-gcontact-jot.h
@@ -122,7 +122,7 @@ typedef struct {
 
 GType gdata_gcontact_jot_get_type (void) G_GNUC_CONST;
 
-GDataGContactJot *gdata_gcontact_jot_new (const gchar *content, const gchar *relation_type) G_GNUC_WARN_UNUSED_RESULT;
+GDataGContactJot *gdata_gcontact_jot_new (const gchar *content, const gchar *relation_type) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_gcontact_jot_get_content (GDataGContactJot *self);
 void gdata_gcontact_jot_set_content (GDataGContactJot *self, const gchar *content);
diff --git a/gdata/gcontact/gdata-gcontact-relation.h b/gdata/gcontact/gdata-gcontact-relation.h
index efcd004..73660f8 100644
--- a/gdata/gcontact/gdata-gcontact-relation.h
+++ b/gdata/gcontact/gdata-gcontact-relation.h
@@ -230,7 +230,8 @@ typedef struct {
 
 GType gdata_gcontact_relation_get_type (void) G_GNUC_CONST;
 
-GDataGContactRelation *gdata_gcontact_relation_new (const gchar *name, const gchar *relation_type, const gchar *label) G_GNUC_WARN_UNUSED_RESULT;
+GDataGContactRelation *gdata_gcontact_relation_new (const gchar *name, const gchar *relation_type,
+                                                    const gchar *label) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_gcontact_relation_get_name (GDataGContactRelation *self);
 void gdata_gcontact_relation_set_name (GDataGContactRelation *self, const gchar *name);
diff --git a/gdata/gcontact/gdata-gcontact-website.h b/gdata/gcontact/gdata-gcontact-website.h
index da0d62f..91bd585 100644
--- a/gdata/gcontact/gdata-gcontact-website.h
+++ b/gdata/gcontact/gdata-gcontact-website.h
@@ -147,7 +147,7 @@ typedef struct {
 GType gdata_gcontact_website_get_type (void) G_GNUC_CONST;
 
 GDataGContactWebsite *gdata_gcontact_website_new (const gchar *uri, const gchar *relation_type,
-                                                  const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT;
+                                                  const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gcontact_website_compare (const GDataGContactWebsite *a, const GDataGContactWebsite *b);
 
 const gchar *gdata_gcontact_website_get_uri (GDataGContactWebsite *self);
diff --git a/gdata/gd/gdata-gd-email-address.h b/gdata/gd/gdata-gd-email-address.h
index e59a81b..038e70d 100644
--- a/gdata/gd/gdata-gd-email-address.h
+++ b/gdata/gd/gdata-gd-email-address.h
@@ -90,7 +90,7 @@ typedef struct {
 GType gdata_gd_email_address_get_type (void) G_GNUC_CONST;
 
 GDataGDEmailAddress *gdata_gd_email_address_new (const gchar *address, const gchar *relation_type,
-						 const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT;
+						 const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_email_address_compare (const GDataGDEmailAddress *a, const GDataGDEmailAddress *b);
 
 const gchar *gdata_gd_email_address_get_address (GDataGDEmailAddress *self);
diff --git a/gdata/gd/gdata-gd-im-address.h b/gdata/gd/gdata-gd-im-address.h
index 92d7496..4146443 100644
--- a/gdata/gd/gdata-gd-im-address.h
+++ b/gdata/gd/gdata-gd-im-address.h
@@ -171,7 +171,7 @@ typedef struct {
 GType gdata_gd_im_address_get_type (void) G_GNUC_CONST;
 
 GDataGDIMAddress *gdata_gd_im_address_new (const gchar *address, const gchar *protocol, const gchar *relation_type, const gchar *label,
-					   gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT;
+					   gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_im_address_compare (const GDataGDIMAddress *a, const GDataGDIMAddress *b);
 
 const gchar *gdata_gd_im_address_get_address (GDataGDIMAddress *self);
diff --git a/gdata/gd/gdata-gd-name.h b/gdata/gd/gdata-gd-name.h
index 361414c..99cdec8 100644
--- a/gdata/gd/gdata-gd-name.h
+++ b/gdata/gd/gdata-gd-name.h
@@ -62,7 +62,7 @@ typedef struct {
 
 GType gdata_gd_name_get_type (void) G_GNUC_CONST;
 
-GDataGDName *gdata_gd_name_new (const gchar *given_name, const gchar *family_name) G_GNUC_WARN_UNUSED_RESULT;
+GDataGDName *gdata_gd_name_new (const gchar *given_name, const gchar *family_name) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_name_compare (const GDataGDName *a, const GDataGDName *b);
 
 const gchar *gdata_gd_name_get_given_name (GDataGDName *self);
diff --git a/gdata/gd/gdata-gd-organization.h b/gdata/gd/gdata-gd-organization.h
index c37486c..0e07245 100644
--- a/gdata/gd/gdata-gd-organization.h
+++ b/gdata/gd/gdata-gd-organization.h
@@ -82,7 +82,7 @@ typedef struct {
 GType gdata_gd_organization_get_type (void) G_GNUC_CONST;
 
 GDataGDOrganization *gdata_gd_organization_new (const gchar *name, const gchar *title, const gchar *relation_type,
-						const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT;
+						const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_organization_compare (const GDataGDOrganization *a, const GDataGDOrganization *b);
 
 const gchar *gdata_gd_organization_get_name (GDataGDOrganization *self);
diff --git a/gdata/gd/gdata-gd-phone-number.h b/gdata/gd/gdata-gd-phone-number.h
index 00f8faa..235b35f 100644
--- a/gdata/gd/gdata-gd-phone-number.h
+++ b/gdata/gd/gdata-gd-phone-number.h
@@ -243,7 +243,7 @@ typedef struct {
 GType gdata_gd_phone_number_get_type (void) G_GNUC_CONST;
 
 GDataGDPhoneNumber *gdata_gd_phone_number_new (const gchar *number, const gchar *relation_type, const gchar *label, const gchar *uri,
-					       gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT;
+					       gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_phone_number_compare (const GDataGDPhoneNumber *a, const GDataGDPhoneNumber *b);
 
 const gchar *gdata_gd_phone_number_get_number (GDataGDPhoneNumber *self);
diff --git a/gdata/gd/gdata-gd-postal-address.h b/gdata/gd/gdata-gd-postal-address.h
index 898fd31..93d3b90 100644
--- a/gdata/gd/gdata-gd-postal-address.h
+++ b/gdata/gd/gdata-gd-postal-address.h
@@ -143,7 +143,8 @@ typedef struct {
 
 GType gdata_gd_postal_address_get_type (void) G_GNUC_CONST;
 
-GDataGDPostalAddress *gdata_gd_postal_address_new (const gchar *relation_type, const gchar *label, gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT;
+GDataGDPostalAddress *gdata_gd_postal_address_new (const gchar *relation_type, const gchar *label,
+                                                   gboolean is_primary) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_postal_address_compare (const GDataGDPostalAddress *a, const GDataGDPostalAddress *b);
 
 const gchar *gdata_gd_postal_address_get_address (GDataGDPostalAddress *self);
diff --git a/gdata/gd/gdata-gd-reminder.h b/gdata/gd/gdata-gd-reminder.h
index c3e37ad..2a677de 100644
--- a/gdata/gd/gdata-gd-reminder.h
+++ b/gdata/gd/gdata-gd-reminder.h
@@ -89,7 +89,7 @@ typedef struct {
 
 GType gdata_gd_reminder_get_type (void) G_GNUC_CONST;
 
-GDataGDReminder *gdata_gd_reminder_new (const gchar *method, const GTimeVal *absolute_time, gint relative_time) G_GNUC_WARN_UNUSED_RESULT;
+GDataGDReminder *gdata_gd_reminder_new (const gchar *method, const GTimeVal *absolute_time, gint relative_time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_reminder_compare (const GDataGDReminder *a, const GDataGDReminder *b);
 
 const gchar *gdata_gd_reminder_get_method (GDataGDReminder *self);
diff --git a/gdata/gd/gdata-gd-when.h b/gdata/gd/gdata-gd-when.h
index 4eb8ad7..596759e 100644
--- a/gdata/gd/gdata-gd-when.h
+++ b/gdata/gd/gdata-gd-when.h
@@ -144,7 +144,7 @@ typedef struct {
 
 GType gdata_gd_when_get_type (void) G_GNUC_CONST;
 
-GDataGDWhen *gdata_gd_when_new (const GTimeVal *start_time, const GTimeVal *end_time, gboolean is_date) G_GNUC_WARN_UNUSED_RESULT;
+GDataGDWhen *gdata_gd_when_new (const GTimeVal *start_time, const GTimeVal *end_time, gboolean is_date) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_when_compare (const GDataGDWhen *a, const GDataGDWhen *b);
 
 void gdata_gd_when_get_start_time (GDataGDWhen *self, GTimeVal *start_time);
diff --git a/gdata/gd/gdata-gd-where.h b/gdata/gd/gdata-gd-where.h
index b1d7f7d..622bbc4 100644
--- a/gdata/gd/gdata-gd-where.h
+++ b/gdata/gd/gdata-gd-where.h
@@ -89,7 +89,7 @@ typedef struct {
 
 GType gdata_gd_where_get_type (void) G_GNUC_CONST;
 
-GDataGDWhere *gdata_gd_where_new (const gchar *relation_type, const gchar *value_string, const gchar *label) G_GNUC_WARN_UNUSED_RESULT;
+GDataGDWhere *gdata_gd_where_new (const gchar *relation_type, const gchar *value_string, const gchar *label) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_where_compare (const GDataGDWhere *a, const GDataGDWhere *b);
 
 const gchar *gdata_gd_where_get_relation_type (GDataGDWhere *self);
diff --git a/gdata/gd/gdata-gd-who.h b/gdata/gd/gdata-gd-who.h
index 708bbde..070bc79 100644
--- a/gdata/gd/gdata-gd-who.h
+++ b/gdata/gd/gdata-gd-who.h
@@ -100,7 +100,8 @@ typedef struct {
 
 GType gdata_gd_who_get_type (void) G_GNUC_CONST;
 
-GDataGDWho *gdata_gd_who_new (const gchar *relation_type, const gchar *value_string, const gchar *email_address) G_GNUC_WARN_UNUSED_RESULT;
+GDataGDWho *gdata_gd_who_new (const gchar *relation_type, const gchar *value_string,
+                              const gchar *email_address) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gint gdata_gd_who_compare (const GDataGDWho *a, const GDataGDWho *b);
 
 const gchar *gdata_gd_who_get_relation_type (GDataGDWho *self);
diff --git a/gdata/gdata-access-handler.h b/gdata/gdata-access-handler.h
index 8dc7102..6ab160c 100644
--- a/gdata/gdata-access-handler.h
+++ b/gdata/gdata-access-handler.h
@@ -63,11 +63,11 @@ GType gdata_access_handler_get_type (void) G_GNUC_CONST;
 
 GDataFeed *gdata_access_handler_get_rules (GDataAccessHandler *self, GDataService *service, GCancellable *cancellable,
 					   GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-					   GError **error) G_GNUC_WARN_UNUSED_RESULT;
+					   GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataAccessRule *gdata_access_handler_insert_rule (GDataAccessHandler *self, GDataService *service, GDataAccessRule *rule,
-						   GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						   GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataAccessRule *gdata_access_handler_update_rule (GDataAccessHandler *self, GDataService *service, GDataAccessRule *rule,
-						   GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						   GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gboolean gdata_access_handler_delete_rule (GDataAccessHandler *self, GDataService *service, GDataAccessRule *rule,
 					   GCancellable *cancellable, GError **error);
 
diff --git a/gdata/gdata-access-rule.h b/gdata/gdata-access-rule.h
index f39d5c6..f27c8fa 100644
--- a/gdata/gdata-access-rule.h
+++ b/gdata/gdata-access-rule.h
@@ -99,7 +99,7 @@ typedef struct {
 
 GType gdata_access_rule_get_type (void) G_GNUC_CONST;
 
-GDataAccessRule *gdata_access_rule_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataAccessRule *gdata_access_rule_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_access_rule_get_role (GDataAccessRule *self);
 void gdata_access_rule_set_role (GDataAccessRule *self, const gchar *role);
diff --git a/gdata/gdata-buffer.h b/gdata/gdata-buffer.h
index 9591dc1..306fae5 100644
--- a/gdata/gdata-buffer.h
+++ b/gdata/gdata-buffer.h
@@ -47,7 +47,7 @@ typedef struct {
 	GCond *cond; /* a GCond to allow a popping thread to block on data being pushed into the buffer */
 } GDataBuffer;
 
-GDataBuffer *gdata_buffer_new (void) G_GNUC_WARN_UNUSED_RESULT;
+GDataBuffer *gdata_buffer_new (void) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_buffer_free (GDataBuffer *self);
 
 gboolean gdata_buffer_push_data (GDataBuffer *self, const guint8 *data, gsize length);
diff --git a/gdata/gdata-download-stream.h b/gdata/gdata-download-stream.h
index 5ee4da9..9a220d3 100644
--- a/gdata/gdata-download-stream.h
+++ b/gdata/gdata-download-stream.h
@@ -63,7 +63,7 @@ typedef struct {
 
 GType gdata_download_stream_get_type (void) G_GNUC_CONST;
 
-GInputStream *gdata_download_stream_new (GDataService *service, const gchar *download_uri) G_GNUC_WARN_UNUSED_RESULT;
+GInputStream *gdata_download_stream_new (GDataService *service, const gchar *download_uri) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataService *gdata_download_stream_get_service (GDataDownloadStream *self);
 const gchar *gdata_download_stream_get_download_uri (GDataDownloadStream *self);
diff --git a/gdata/gdata-entry.h b/gdata/gdata-entry.h
index bbca7e8..df8f30e 100644
--- a/gdata/gdata-entry.h
+++ b/gdata/gdata-entry.h
@@ -59,12 +59,12 @@ typedef struct {
 typedef struct {
 	GDataParsableClass parent;
 
-	gchar *(*get_entry_uri) (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+	gchar *(*get_entry_uri) (const gchar *id); /* G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC */
 } GDataEntryClass;
 
 GType gdata_entry_get_type (void) G_GNUC_CONST;
 
-GDataEntry *gdata_entry_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataEntry *gdata_entry_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_entry_get_title (GDataEntry *self);
 void gdata_entry_set_title (GDataEntry *self, const gchar *title);
diff --git a/gdata/gdata-parsable.h b/gdata/gdata-parsable.h
index a1e99ac..c072a49 100644
--- a/gdata/gdata-parsable.h
+++ b/gdata/gdata-parsable.h
@@ -97,8 +97,8 @@ typedef struct {
 
 GType gdata_parsable_get_type (void) G_GNUC_CONST;
 
-GDataParsable *gdata_parsable_new_from_xml (GType parsable_type, const gchar *xml, gint length, GError **error) G_GNUC_WARN_UNUSED_RESULT;
-gchar *gdata_parsable_get_xml (GDataParsable *self) G_GNUC_WARN_UNUSED_RESULT;
+GDataParsable *gdata_parsable_new_from_xml (GType parsable_type, const gchar *xml, gint length, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+gchar *gdata_parsable_get_xml (GDataParsable *self) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/gdata-parser.h b/gdata/gdata-parser.h
index 1e123d6..c2d8fd1 100644
--- a/gdata/gdata-parser.h
+++ b/gdata/gdata-parser.h
@@ -36,7 +36,7 @@ gboolean gdata_parser_error_required_element_missing (const gchar *element_name,
 gboolean gdata_parser_error_duplicate_element (xmlNode *element, GError **error);
 
 gboolean gdata_parser_time_val_from_date (const gchar *date, GTimeVal *_time);
-gchar *gdata_parser_date_from_time_val (const GTimeVal *_time) G_GNUC_WARN_UNUSED_RESULT;
+gchar *gdata_parser_date_from_time_val (const GTimeVal *_time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 /*
  * GDataParserOptions:
@@ -78,7 +78,7 @@ gboolean gdata_parser_object_from_element (xmlNode *element, const gchar *elemen
                                            gpointer /* GDataParsable ** */ _output, gboolean *success, GError **error);
 
 void gdata_parser_string_append_escaped (GString *xml_string, const gchar *pre, const gchar *element_content, const gchar *post);
-gchar *gdata_parser_utf8_trim_whitespace (const gchar *s) G_GNUC_WARN_UNUSED_RESULT;
+gchar *gdata_parser_utf8_trim_whitespace (const gchar *s) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/gdata-private.h b/gdata/gdata-private.h
index 3fbf3dd..d67a536 100644
--- a/gdata/gdata-private.h
+++ b/gdata/gdata-private.h
@@ -49,7 +49,8 @@ SoupSession *_gdata_service_get_session (GDataService *self);
 void _gdata_service_set_authenticated (GDataService *self, gboolean authenticated);
 guint _gdata_service_send_message (GDataService *self, SoupMessage *message, GError **error);
 SoupMessage *_gdata_service_query (GDataService *self, const gchar *feed_uri, GDataQuery *query, GCancellable *cancellable,
-				   GDataQueryProgressCallback progress_callback, gpointer progress_user_data, GError **error);
+				   GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
+				   GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void _gdata_service_query_async (GDataService *self, const gchar *feed_uri, GDataQuery *query, GType entry_type, GCancellable *cancellable,
 				 GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
 				 GAsyncReadyCallback callback, gpointer user_data, GSimpleAsyncThreadFunc query_thread);
@@ -62,15 +63,16 @@ void _gdata_query_set_previous_uri (GDataQuery *self, const gchar *previous_uri)
 
 #include "gdata-parsable.h"
 GDataParsable *_gdata_parsable_new_from_xml (GType parsable_type, const gchar *xml, gint length, gpointer user_data,
-					     GError **error) G_GNUC_WARN_UNUSED_RESULT;
+					     GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataParsable *_gdata_parsable_new_from_xml_node (GType parsable_type, xmlDoc *doc, xmlNode *node, gpointer user_data,
-						  GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						  GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void _gdata_parsable_get_xml (GDataParsable *self, GString *xml_string, gboolean declare_namespaces);
 void _gdata_parsable_string_append_escaped (GString *xml_string, const gchar *pre, const gchar *element_content, const gchar *post);
 
 #include "gdata-feed.h"
 GDataFeed *_gdata_feed_new_from_xml (GType feed_type, const gchar *xml, gint length, GType entry_type,
-				     GDataQueryProgressCallback progress_callback, gpointer progress_user_data, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+				     GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
+				     GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void _gdata_feed_add_entry (GDataFeed *self, GDataEntry *entry);
 gpointer _gdata_feed_parse_data_new(GType entry_type, GDataQueryProgressCallback progress_callback, gpointer progress_user_data);
 void _gdata_feed_parse_data_free (gpointer data);
@@ -79,7 +81,7 @@ void _gdata_feed_call_progress_callback (GDataFeed *self, gpointer user_data, GD
 #include "gdata/services/documents/gdata-documents-entry.h"
 GFile *_gdata_documents_entry_download_document (GDataDocumentsEntry *self, GDataService *service, gchar **content_type, const gchar *download_uri,
 						 GFile *destination_directory, const gchar *file_extension, gboolean replace_file_if_exists,
-						 GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						 GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void _gdata_documents_entry_init_edited (GDataDocumentsEntry *self);
 
 #include "gdata/services/documents/gdata-documents-service.h"
@@ -88,7 +90,9 @@ GDataService *_gdata_documents_service_get_spreadsheet_service (GDataDocumentsSe
 
 #include "gdata-parser.h"
 
-GFileOutputStream *_gdata_download_stream_find_destination (const gchar *default_filename, GFile *target_dest_file, GFile **actual_dest_file, gboolean replace_file_if_exists, GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GFileOutputStream *_gdata_download_stream_find_destination (const gchar *default_filename, GFile *target_dest_file, GFile **actual_dest_file,
+                                                            gboolean replace_file_if_exists,
+                                                            GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/gdata-query.h b/gdata/gdata-query.h
index 8e5b383..4da9696 100644
--- a/gdata/gdata-query.h
+++ b/gdata/gdata-query.h
@@ -58,10 +58,10 @@ typedef struct {
 
 GType gdata_query_get_type (void) G_GNUC_CONST;
 
-GDataQuery *gdata_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT;
-GDataQuery *gdata_query_new_with_limits (const gchar *q, gint start_index, gint max_results) G_GNUC_WARN_UNUSED_RESULT;
+GDataQuery *gdata_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+GDataQuery *gdata_query_new_with_limits (const gchar *q, gint start_index, gint max_results) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
-gchar *gdata_query_get_query_uri (GDataQuery *self, const gchar *feed_uri) G_GNUC_WARN_UNUSED_RESULT;
+gchar *gdata_query_get_query_uri (GDataQuery *self, const gchar *feed_uri) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_query_next_page (GDataQuery *self);
 gboolean gdata_query_previous_page (GDataQuery *self);
 
diff --git a/gdata/gdata-service.h b/gdata/gdata-service.h
index 73af8ee..bac6f35 100644
--- a/gdata/gdata-service.h
+++ b/gdata/gdata-service.h
@@ -189,29 +189,32 @@ gboolean gdata_service_authenticate_finish (GDataService *self, GAsyncResult *as
 
 GDataFeed *gdata_service_query (GDataService *self, const gchar *feed_uri, GDataQuery *query, GType entry_type,
                                 GCancellable *cancellable,
-                                GDataQueryProgressCallback progress_callback, gpointer progress_user_data, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+                                GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
+                                GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_service_query_async (GDataService *self, const gchar *feed_uri, GDataQuery *query, GType entry_type,
                                 GCancellable *cancellable,
                                 GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
                                 GAsyncReadyCallback callback, gpointer user_data);
-GDataFeed *gdata_service_query_finish (GDataService *self, GAsyncResult *async_result, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GDataFeed *gdata_service_query_finish (GDataService *self, GAsyncResult *async_result, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataEntry *gdata_service_query_single_entry (GDataService *self, const gchar *entry_id, GDataQuery *query, GType entry_type,
-                                              GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+                                              GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_service_query_single_entry_async (GDataService *self, const gchar *entry_id, GDataQuery *query, GType entry_type,
                                              GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
-GDataEntry *gdata_service_query_single_entry_finish (GDataService *self, GAsyncResult *async_result, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GDataEntry *gdata_service_query_single_entry_finish (GDataService *self, GAsyncResult *async_result,
+                                                     GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataEntry *gdata_service_insert_entry (GDataService *self, const gchar *upload_uri, GDataEntry *entry,
-                                        GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+                                        GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_service_insert_entry_async (GDataService *self, const gchar *upload_uri, GDataEntry *entry, GCancellable *cancellable,
                                        GAsyncReadyCallback callback, gpointer user_data);
-GDataEntry *gdata_service_insert_entry_finish (GDataService *self, GAsyncResult *async_result, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GDataEntry *gdata_service_insert_entry_finish (GDataService *self, GAsyncResult *async_result, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
-GDataEntry *gdata_service_update_entry (GDataService *self, GDataEntry *entry, GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GDataEntry *gdata_service_update_entry (GDataService *self, GDataEntry *entry,
+                                        GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_service_update_entry_async (GDataService *self, GDataEntry *entry, GCancellable *cancellable,
                                        GAsyncReadyCallback callback, gpointer user_data);
-GDataEntry *gdata_service_update_entry_finish (GDataService *self, GAsyncResult *async_result, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GDataEntry *gdata_service_update_entry_finish (GDataService *self, GAsyncResult *async_result, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 gboolean gdata_service_delete_entry (GDataService *self, GDataEntry *entry, GCancellable *cancellable, GError **error);
 void gdata_service_delete_entry_async (GDataService *self, GDataEntry *entry, GCancellable *cancellable,
diff --git a/gdata/gdata-types.h b/gdata/gdata-types.h
index fb5ebef..9bb2f37 100644
--- a/gdata/gdata-types.h
+++ b/gdata/gdata-types.h
@@ -45,7 +45,7 @@ typedef struct {
 #define GDATA_TYPE_COLOR (gdata_color_get_type ())
 GType gdata_color_get_type (void) G_GNUC_CONST;
 gboolean gdata_color_from_hexadecimal (const gchar *hexadecimal, GDataColor *color);
-gchar *gdata_color_to_hexadecimal (const GDataColor *color) G_GNUC_WARN_UNUSED_RESULT;
+gchar *gdata_color_to_hexadecimal (const GDataColor *color) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/gdata-upload-stream.h b/gdata/gdata-upload-stream.h
index 6683f69..216f779 100644
--- a/gdata/gdata-upload-stream.h
+++ b/gdata/gdata-upload-stream.h
@@ -65,7 +65,7 @@ typedef struct {
 GType gdata_upload_stream_get_type (void) G_GNUC_CONST;
 
 GOutputStream *gdata_upload_stream_new (GDataService *service, const gchar *method, const gchar *upload_uri, GDataEntry *entry,
-					const gchar *slug, const gchar *content_type) G_GNUC_WARN_UNUSED_RESULT;
+					const gchar *slug, const gchar *content_type) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_upload_stream_get_response (GDataUploadStream *self, gssize *length);
 
diff --git a/gdata/media/gdata-media-category.h b/gdata/media/gdata-media-category.h
index 082c566..52a1066 100644
--- a/gdata/media/gdata-media-category.h
+++ b/gdata/media/gdata-media-category.h
@@ -60,7 +60,7 @@ typedef struct {
 
 GType gdata_media_category_get_type (void) G_GNUC_CONST;
 
-GDataMediaCategory *gdata_media_category_new (const gchar *category, const gchar *scheme, const gchar *label) G_GNUC_WARN_UNUSED_RESULT;
+GDataMediaCategory *gdata_media_category_new (const gchar *category, const gchar *scheme, const gchar *label) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_media_category_get_category (GDataMediaCategory *self);
 void gdata_media_category_set_category (GDataMediaCategory *self, const gchar *category);
diff --git a/gdata/media/gdata-media-content.h b/gdata/media/gdata-media-content.h
index 828a3e9..324a878 100644
--- a/gdata/media/gdata-media-content.h
+++ b/gdata/media/gdata-media-content.h
@@ -106,7 +106,9 @@ GDataMediaExpression gdata_media_content_get_expression (GDataMediaContent *self
 gint64 gdata_media_content_get_duration (GDataMediaContent *self);
 guint gdata_media_content_get_height (GDataMediaContent *self);
 guint gdata_media_content_get_width (GDataMediaContent *self);
-GFile *gdata_media_content_download (GDataMediaContent *self, GDataService *service, const gchar *default_filename, GFile *target_dest_file, gboolean replace_file_if_exists, GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GFile *gdata_media_content_download (GDataMediaContent *self, GDataService *service, const gchar *default_filename, GFile *target_dest_file,
+                                     gboolean replace_file_if_exists,
+                                     GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/media/gdata-media-thumbnail.h b/gdata/media/gdata-media-thumbnail.h
index 92f55cf..04387fa 100644
--- a/gdata/media/gdata-media-thumbnail.h
+++ b/gdata/media/gdata-media-thumbnail.h
@@ -65,7 +65,9 @@ const gchar *gdata_media_thumbnail_get_uri (GDataMediaThumbnail *self);
 guint gdata_media_thumbnail_get_height (GDataMediaThumbnail *self);
 guint gdata_media_thumbnail_get_width (GDataMediaThumbnail *self);
 gint64 gdata_media_thumbnail_get_time (GDataMediaThumbnail *self);
-GFile *gdata_media_thumbnail_download (GDataMediaThumbnail *self, GDataService *service, const gchar *default_filename, GFile *target_dest_file, gboolean replace_file_if_exists, GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GFile *gdata_media_thumbnail_download (GDataMediaThumbnail *self, GDataService *service, const gchar *default_filename, GFile *target_dest_file,
+                                       gboolean replace_file_if_exists,
+                                       GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/services/calendar/gdata-calendar-calendar.h b/gdata/services/calendar/gdata-calendar-calendar.h
index d2b8941..a0d7539 100644
--- a/gdata/services/calendar/gdata-calendar-calendar.h
+++ b/gdata/services/calendar/gdata-calendar-calendar.h
@@ -105,7 +105,7 @@ typedef struct {
 
 GType gdata_calendar_calendar_get_type (void) G_GNUC_CONST;
 
-GDataCalendarCalendar *gdata_calendar_calendar_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataCalendarCalendar *gdata_calendar_calendar_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_calendar_calendar_get_timezone (GDataCalendarCalendar *self);
 void gdata_calendar_calendar_set_timezone (GDataCalendarCalendar *self, const gchar *_timezone);
diff --git a/gdata/services/calendar/gdata-calendar-event.h b/gdata/services/calendar/gdata-calendar-event.h
index 74fc8be..339c8a5 100644
--- a/gdata/services/calendar/gdata-calendar-event.h
+++ b/gdata/services/calendar/gdata-calendar-event.h
@@ -62,7 +62,7 @@ typedef struct {
 
 GType gdata_calendar_event_get_type (void) G_GNUC_CONST;
 
-GDataCalendarEvent *gdata_calendar_event_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataCalendarEvent *gdata_calendar_event_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 void gdata_calendar_event_get_edited (GDataCalendarEvent *self, GTimeVal *edited);
 const gchar *gdata_calendar_event_get_status (GDataCalendarEvent *self);
diff --git a/gdata/services/calendar/gdata-calendar-query.h b/gdata/services/calendar/gdata-calendar-query.h
index f892c2e..b1b226c 100644
--- a/gdata/services/calendar/gdata-calendar-query.h
+++ b/gdata/services/calendar/gdata-calendar-query.h
@@ -59,9 +59,9 @@ typedef struct {
 
 GType gdata_calendar_query_get_type (void) G_GNUC_CONST;
 
-GDataCalendarQuery *gdata_calendar_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT;
+GDataCalendarQuery *gdata_calendar_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataCalendarQuery *gdata_calendar_query_new_with_limits (const gchar *q,
-                                                          const GTimeVal *start_min, const GTimeVal *start_max) G_GNUC_WARN_UNUSED_RESULT;
+                                                          const GTimeVal *start_min, const GTimeVal *start_max) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 gboolean gdata_calendar_query_get_future_events (GDataCalendarQuery *self);
 void gdata_calendar_query_set_future_events (GDataCalendarQuery *self, gboolean future_events);
diff --git a/gdata/services/calendar/gdata-calendar-service.h b/gdata/services/calendar/gdata-calendar-service.h
index cac2ade..8494192 100644
--- a/gdata/services/calendar/gdata-calendar-service.h
+++ b/gdata/services/calendar/gdata-calendar-service.h
@@ -59,30 +59,30 @@ typedef struct {
 
 GType gdata_calendar_service_get_type (void) G_GNUC_CONST;
 
-GDataCalendarService *gdata_calendar_service_new (const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT;
+GDataCalendarService *gdata_calendar_service_new (const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataFeed *gdata_calendar_service_query_all_calendars (GDataCalendarService *self, GDataQuery *query, GCancellable *cancellable,
 						       GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-						       GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						       GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_calendar_service_query_all_calendars_async (GDataCalendarService *self, GDataQuery *query, GCancellable *cancellable,
 						       GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
 						       GAsyncReadyCallback callback, gpointer user_data);
 
 GDataFeed *gdata_calendar_service_query_own_calendars (GDataCalendarService *self, GDataQuery *query, GCancellable *cancellable,
 						       GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-						       GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						       GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_calendar_service_query_own_calendars_async (GDataCalendarService *self, GDataQuery *query, GCancellable *cancellable,
 						       GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
 						       GAsyncReadyCallback callback, gpointer user_data);
 
 GDataFeed *gdata_calendar_service_query_events (GDataCalendarService *self, GDataCalendarCalendar *calendar, GDataQuery *query,
 						GCancellable *cancellable, GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-						GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 #include <gdata/services/calendar/gdata-calendar-event.h>
 
 GDataCalendarEvent *gdata_calendar_service_insert_event (GDataCalendarService *self, GDataCalendarEvent *event,
-							 GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+							 GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/services/contacts/gdata-contacts-contact.h b/gdata/services/contacts/gdata-contacts-contact.h
index 03227ec..e0f362b 100644
--- a/gdata/services/contacts/gdata-contacts-contact.h
+++ b/gdata/services/contacts/gdata-contacts-contact.h
@@ -73,7 +73,7 @@ typedef struct {
 
 GType gdata_contacts_contact_get_type (void) G_GNUC_CONST;
 
-GDataContactsContact *gdata_contacts_contact_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataContactsContact *gdata_contacts_contact_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 void gdata_contacts_contact_get_edited (GDataContactsContact *self, GTimeVal *edited);
 gboolean gdata_contacts_contact_is_deleted (GDataContactsContact *self);
@@ -141,13 +141,13 @@ gboolean gdata_contacts_contact_set_extended_property (GDataContactsContact *sel
 void gdata_contacts_contact_add_group (GDataContactsContact *self, const gchar *href);
 void gdata_contacts_contact_remove_group (GDataContactsContact *self, const gchar *href);
 gboolean gdata_contacts_contact_is_group_deleted (GDataContactsContact *self, const gchar *href);
-GList *gdata_contacts_contact_get_groups (GDataContactsContact *self) G_GNUC_WARN_UNUSED_RESULT;
+GList *gdata_contacts_contact_get_groups (GDataContactsContact *self) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 #include <gdata/services/contacts/gdata-contacts-service.h>
 
 gboolean gdata_contacts_contact_has_photo (GDataContactsContact *self);
 gchar *gdata_contacts_contact_get_photo (GDataContactsContact *self, GDataContactsService *service, gsize *length, gchar **content_type,
-                                         GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+                                         GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gboolean gdata_contacts_contact_set_photo (GDataContactsContact *self, GDataService *service, const gchar *data, gsize length,
                                            GCancellable *cancellable, GError **error);
 
diff --git a/gdata/services/contacts/gdata-contacts-query.h b/gdata/services/contacts/gdata-contacts-query.h
index 657b863..a954611 100644
--- a/gdata/services/contacts/gdata-contacts-query.h
+++ b/gdata/services/contacts/gdata-contacts-query.h
@@ -62,8 +62,8 @@ typedef struct {
 
 GType gdata_contacts_query_get_type (void) G_GNUC_CONST;
 
-GDataContactsQuery *gdata_contacts_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT;
-GDataContactsQuery *gdata_contacts_query_new_with_limits (const gchar *q, gint start_index, gint max_results) G_GNUC_WARN_UNUSED_RESULT;
+GDataContactsQuery *gdata_contacts_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+GDataContactsQuery *gdata_contacts_query_new_with_limits (const gchar *q, gint start_index, gint max_results) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_contacts_query_get_order_by (GDataContactsQuery *self);
 void gdata_contacts_query_set_order_by (GDataContactsQuery *self, const gchar *order_by);
diff --git a/gdata/services/contacts/gdata-contacts-service.h b/gdata/services/contacts/gdata-contacts-service.h
index dd02460..5206f13 100644
--- a/gdata/services/contacts/gdata-contacts-service.h
+++ b/gdata/services/contacts/gdata-contacts-service.h
@@ -62,11 +62,11 @@ typedef struct {
 
 GType gdata_contacts_service_get_type (void) G_GNUC_CONST;
 
-GDataContactsService *gdata_contacts_service_new (const gchar *client_id);
+GDataContactsService *gdata_contacts_service_new (const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataFeed *gdata_contacts_service_query_contacts (GDataContactsService *self, GDataQuery *query, GCancellable *cancellable,
 						  GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-						  GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						  GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_contacts_service_query_contacts_async (GDataContactsService *self, GDataQuery *query, GCancellable *cancellable,
 						  GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
 						  GAsyncReadyCallback callback, gpointer user_data);
@@ -74,9 +74,9 @@ void gdata_contacts_service_query_contacts_async (GDataContactsService *self, GD
 #include <gdata/services/contacts/gdata-contacts-contact.h>
 
 GDataContactsContact *gdata_contacts_service_insert_contact (GDataContactsService *self, GDataContactsContact *contact,
-							     GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+							     GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataContactsContact *gdata_contacts_service_update_contact (GDataContactsService *self, GDataContactsContact *contact,
-							     GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+							     GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/services/documents/gdata-documents-entry.h b/gdata/services/documents/gdata-documents-entry.h
index 3b332d8..5e9dcfe 100644
--- a/gdata/services/documents/gdata-documents-entry.h
+++ b/gdata/services/documents/gdata-documents-entry.h
@@ -92,7 +92,7 @@ typedef struct {
 
 GType gdata_documents_entry_get_type (void) G_GNUC_CONST;
 
-gchar *gdata_documents_entry_get_path (GDataDocumentsEntry *self);
+gchar *gdata_documents_entry_get_path (GDataDocumentsEntry *self) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_documents_entry_get_document_id (GDataDocumentsEntry *self);
 
diff --git a/gdata/services/documents/gdata-documents-folder.h b/gdata/services/documents/gdata-documents-folder.h
index dbf7dc3..e328517 100644
--- a/gdata/services/documents/gdata-documents-folder.h
+++ b/gdata/services/documents/gdata-documents-folder.h
@@ -62,7 +62,7 @@ typedef struct {
 } GDataDocumentsFolderClass;
 
 GType gdata_documents_folder_get_type (void) G_GNUC_CONST;
-GDataDocumentsFolder *gdata_documents_folder_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataDocumentsFolder *gdata_documents_folder_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/services/documents/gdata-documents-presentation.h b/gdata/services/documents/gdata-documents-presentation.h
index 7137816..2f3485c 100644
--- a/gdata/services/documents/gdata-documents-presentation.h
+++ b/gdata/services/documents/gdata-documents-presentation.h
@@ -83,14 +83,15 @@ typedef struct {
 
 GType gdata_documents_presentation_get_type (void) G_GNUC_CONST;
 
-GDataDocumentsPresentation *gdata_documents_presentation_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataDocumentsPresentation *gdata_documents_presentation_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 #include <gdata/services/documents/gdata-documents-service.h>
 GFile *gdata_documents_presentation_download_document (GDataDocumentsPresentation *self, GDataDocumentsService *service, gchar **content_type,
 						       GDataDocumentsPresentationFormat export_format, GFile *destination_file,
 						       gboolean replace_file_if_exists, GCancellable *cancellable,
-						       GError **error) G_GNUC_WARN_UNUSED_RESULT;
-gchar *gdata_documents_presentation_get_download_uri (GDataDocumentsPresentation *self, GDataDocumentsPresentationFormat export_format) G_GNUC_WARN_UNUSED_RESULT;
+						       GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+gchar *gdata_documents_presentation_get_download_uri (GDataDocumentsPresentation *self,
+                                                      GDataDocumentsPresentationFormat export_format) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/services/documents/gdata-documents-query.h b/gdata/services/documents/gdata-documents-query.h
index 8ebb8cc..339a071 100644
--- a/gdata/services/documents/gdata-documents-query.h
+++ b/gdata/services/documents/gdata-documents-query.h
@@ -64,8 +64,8 @@ typedef struct {
 
 GType gdata_documents_query_get_type (void) G_GNUC_CONST;
 
-GDataDocumentsQuery *gdata_documents_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT;
-GDataDocumentsQuery *gdata_documents_query_new_with_limits (const gchar *q, gint start_index, gint max_results) G_GNUC_WARN_UNUSED_RESULT;
+GDataDocumentsQuery *gdata_documents_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+GDataDocumentsQuery *gdata_documents_query_new_with_limits (const gchar *q, gint start_index, gint max_results) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 gboolean gdata_documents_query_show_deleted (GDataDocumentsQuery *self);
 void gdata_documents_query_set_show_deleted (GDataDocumentsQuery *self, gboolean show_deleted);
diff --git a/gdata/services/documents/gdata-documents-service.h b/gdata/services/documents/gdata-documents-service.h
index 78802e7..33edf7b 100644
--- a/gdata/services/documents/gdata-documents-service.h
+++ b/gdata/services/documents/gdata-documents-service.h
@@ -79,10 +79,10 @@ typedef struct {
 GType gdata_documents_service_get_type (void) G_GNUC_CONST;
 GQuark gdata_documents_service_error_quark (void) G_GNUC_CONST;
 
-GDataDocumentsService *gdata_documents_service_new (const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT;
+GDataDocumentsService *gdata_documents_service_new (const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataDocumentsFeed *gdata_documents_service_query_documents (GDataDocumentsService *self, GDataDocumentsQuery *query, GCancellable *cancellable,
 							     GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-							     GError **error) G_GNUC_WARN_UNUSED_RESULT;
+							     GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_documents_service_query_documents_async (GDataDocumentsService *self, GDataDocumentsQuery *query, GCancellable *cancellable,
 						    GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
 						    GAsyncReadyCallback callback, gpointer user_data);
@@ -91,16 +91,16 @@ void gdata_documents_service_query_documents_async (GDataDocumentsService *self,
 
 GDataDocumentsEntry *gdata_documents_service_upload_document (GDataDocumentsService *self, GDataDocumentsEntry *document, GFile *document_file,
 							      GDataDocumentsFolder *folder, GCancellable *cancellable,
-							      GError **error) G_GNUC_WARN_UNUSED_RESULT;
+							      GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataDocumentsEntry *gdata_documents_service_update_document (GDataDocumentsService *self, GDataDocumentsEntry *document, GFile *document_file,
-							      GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+							      GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataDocumentsEntry *gdata_documents_service_move_document_to_folder (GDataDocumentsService *self, GDataDocumentsEntry *document,
 								      GDataDocumentsFolder *folder, GCancellable *cancellable,
-								      GError **error) G_GNUC_WARN_UNUSED_RESULT;
+								      GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 GDataDocumentsEntry *gdata_documents_service_remove_document_from_folder (GDataDocumentsService *self, GDataDocumentsEntry *document,
-									  GDataDocumentsFolder *folder,
-									  GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
-gchar *gdata_documents_service_get_upload_uri (GDataDocumentsFolder *folder);
+									  GDataDocumentsFolder *folder, GCancellable *cancellable,
+									  GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+gchar *gdata_documents_service_get_upload_uri (GDataDocumentsFolder *folder) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 #endif /* !GDATA_DOCUMENTS_SERVICE_H */
diff --git a/gdata/services/documents/gdata-documents-spreadsheet.h b/gdata/services/documents/gdata-documents-spreadsheet.h
index 42ef751..b395f04 100644
--- a/gdata/services/documents/gdata-documents-spreadsheet.h
+++ b/gdata/services/documents/gdata-documents-spreadsheet.h
@@ -85,16 +85,16 @@ typedef struct {
 
 GType gdata_documents_spreadsheet_get_type (void) G_GNUC_CONST;
 
-GDataDocumentsSpreadsheet *gdata_documents_spreadsheet_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataDocumentsSpreadsheet *gdata_documents_spreadsheet_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 #include <gdata/services/documents/gdata-documents-service.h>
 
 GFile *gdata_documents_spreadsheet_download_document (GDataDocumentsSpreadsheet *self, GDataDocumentsService *service, gchar **content_type,
 						      GDataDocumentsSpreadsheetFormat export_format, gint gid, GFile *destination_file,
 						      gboolean replace_file_if_exists, GCancellable *cancellable,
-						      GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						      GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 gchar *gdata_documents_spreadsheet_get_download_uri (GDataDocumentsSpreadsheet *self, GDataDocumentsSpreadsheetFormat export_format,
-						     gint gid) G_GNUC_WARN_UNUSED_RESULT;
+						     gint gid) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/services/documents/gdata-documents-text.h b/gdata/services/documents/gdata-documents-text.h
index 393dd98..a8779fc 100644
--- a/gdata/services/documents/gdata-documents-text.h
+++ b/gdata/services/documents/gdata-documents-text.h
@@ -89,15 +89,15 @@ typedef struct {
 
 GType gdata_documents_text_get_type (void) G_GNUC_CONST;
 
-GDataDocumentsText *gdata_documents_text_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataDocumentsText *gdata_documents_text_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 #include <gdata/services/documents/gdata-documents-service.h>
 
 GFile *gdata_documents_text_download_document (GDataDocumentsText *self, GDataDocumentsService *service, gchar **content_type,
 					       GDataDocumentsTextFormat export_format, GFile *destination_file,
 					       gboolean replace_file_if_exists, GCancellable *cancellable,
-					       GError **error) G_GNUC_WARN_UNUSED_RESULT;
-gchar *gdata_documents_text_get_download_uri (GDataDocumentsText *self, GDataDocumentsTextFormat export_format) G_GNUC_WARN_UNUSED_RESULT;
+					       GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+gchar *gdata_documents_text_get_download_uri (GDataDocumentsText *self, GDataDocumentsTextFormat export_format) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 
diff --git a/gdata/services/picasaweb/gdata-picasaweb-album.h b/gdata/services/picasaweb/gdata-picasaweb-album.h
index 276f6f5..c9cbddf 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-album.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-album.h
@@ -78,7 +78,7 @@ typedef struct {
 
 GType gdata_picasaweb_album_get_type (void) G_GNUC_CONST;
 
-GDataPicasaWebAlbum *gdata_picasaweb_album_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataPicasaWebAlbum *gdata_picasaweb_album_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_picasaweb_album_get_id (GDataPicasaWebAlbum *self);
 const gchar *gdata_picasaweb_album_get_user (GDataPicasaWebAlbum *self);
diff --git a/gdata/services/picasaweb/gdata-picasaweb-file.h b/gdata/services/picasaweb/gdata-picasaweb-file.h
index 1942f36..46d9083 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-file.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-file.h
@@ -100,7 +100,7 @@ typedef struct {
 
 GType gdata_picasaweb_file_get_type (void) G_GNUC_CONST;
 
-GDataPicasaWebFile *gdata_picasaweb_file_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataPicasaWebFile *gdata_picasaweb_file_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_picasaweb_file_get_id (GDataPicasaWebFile *self);
 void gdata_picasaweb_file_get_edited (GDataPicasaWebFile *self, GTimeVal *edited);
diff --git a/gdata/services/picasaweb/gdata-picasaweb-query.h b/gdata/services/picasaweb/gdata-picasaweb-query.h
index 38e7895..7190aad 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-query.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-query.h
@@ -64,8 +64,8 @@ typedef struct {
 
 GType gdata_picasaweb_query_get_type (void) G_GNUC_CONST;
 
-GDataPicasaWebQuery *gdata_picasaweb_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT;
-GDataPicasaWebQuery *gdata_picasaweb_query_new_with_limits (const gchar *q, gint start_index, gint max_results) G_GNUC_WARN_UNUSED_RESULT;
+GDataPicasaWebQuery *gdata_picasaweb_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+GDataPicasaWebQuery *gdata_picasaweb_query_new_with_limits (const gchar *q, gint start_index, gint max_results) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataPicasaWebVisibility gdata_picasaweb_query_get_visibility (GDataPicasaWebQuery *self);
 void gdata_picasaweb_query_set_visibility (GDataPicasaWebQuery *self, GDataPicasaWebVisibility visibility);
diff --git a/gdata/services/picasaweb/gdata-picasaweb-service.h b/gdata/services/picasaweb/gdata-picasaweb-service.h
index 4ad06d7..2d75815 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-service.h
+++ b/gdata/services/picasaweb/gdata-picasaweb-service.h
@@ -62,36 +62,38 @@ typedef struct {
 
 GType gdata_picasaweb_service_get_type (void) G_GNUC_CONST;
 
-GDataPicasaWebService *gdata_picasaweb_service_new (const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT;
+GDataPicasaWebService *gdata_picasaweb_service_new (const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 #include <gdata/services/picasaweb/gdata-picasaweb-query.h>
 
-GDataPicasaWebUser *gdata_picasaweb_service_get_user (GDataPicasaWebService *self, const gchar *username, GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+GDataPicasaWebUser *gdata_picasaweb_service_get_user (GDataPicasaWebService *self, const gchar *username,
+                                                      GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
-GDataFeed *gdata_picasaweb_service_query_all_albums (GDataPicasaWebService *self, GDataQuery *query, const gchar *username,
-						     GCancellable *cancellable, GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-						     GError **error) G_GNUC_WARN_UNUSED_RESULT;
-void gdata_picasaweb_service_query_all_albums_async (GDataPicasaWebService *self, GDataQuery *query, const gchar *username,
-						     GCancellable *cancellable, GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
+GDataFeed *gdata_picasaweb_service_query_all_albums (GDataPicasaWebService *self, GDataQuery *query, const gchar *username, GCancellable *cancellable,
+						     GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
+						     GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+void gdata_picasaweb_service_query_all_albums_async (GDataPicasaWebService *self, GDataQuery *query, const gchar *username, GCancellable *cancellable,
+						     GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
 						     GAsyncReadyCallback callback, gpointer user_data);
 
 GDataFeed *gdata_picasaweb_service_query_files (GDataPicasaWebService *self, GDataPicasaWebAlbum *album, GDataQuery *query,
 						GCancellable *cancellable, GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-						GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 #include <gdata/services/picasaweb/gdata-picasaweb-file.h>
 
 GDataPicasaWebFile *gdata_picasaweb_service_upload_file (GDataPicasaWebService *self, GDataPicasaWebAlbum *album, GDataPicasaWebFile *file_entry,
-							 GFile *file_data, GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+							 GFile *file_data,
+							 GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 void
 gdata_picasaweb_service_upload_file_async (GDataPicasaWebService *self, GDataPicasaWebAlbum *album, GDataPicasaWebFile *file_entry,
 					   GFile *file_data, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
 GDataPicasaWebFile *
-gdata_picasaweb_service_upload_file_finish (GDataPicasaWebService *self, GAsyncResult *result, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+gdata_picasaweb_service_upload_file_finish (GDataPicasaWebService *self, GAsyncResult *result, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataPicasaWebAlbum *gdata_picasaweb_service_insert_album (GDataPicasaWebService *self, GDataPicasaWebAlbum *album, GCancellable *cancellable,
-							   GError **error) G_GNUC_WARN_UNUSED_RESULT;
+							   GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 
 G_END_DECLS
diff --git a/gdata/services/youtube/gdata-youtube-query.h b/gdata/services/youtube/gdata-youtube-query.h
index 37baebd..6f76487 100644
--- a/gdata/services/youtube/gdata-youtube-query.h
+++ b/gdata/services/youtube/gdata-youtube-query.h
@@ -131,7 +131,7 @@ typedef struct {
 
 GType gdata_youtube_query_get_type (void) G_GNUC_CONST;
 
-GDataYouTubeQuery *gdata_youtube_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT;
+GDataYouTubeQuery *gdata_youtube_query_new (const gchar *q) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataYouTubeFormat gdata_youtube_query_get_format (GDataYouTubeQuery *self);
 void gdata_youtube_query_set_format (GDataYouTubeQuery *self, GDataYouTubeFormat format);
diff --git a/gdata/services/youtube/gdata-youtube-service.h b/gdata/services/youtube/gdata-youtube-service.h
index 8d32b07..c81ccca 100644
--- a/gdata/services/youtube/gdata-youtube-service.h
+++ b/gdata/services/youtube/gdata-youtube-service.h
@@ -105,12 +105,12 @@ typedef struct {
 GType gdata_youtube_service_get_type (void) G_GNUC_CONST;
 GQuark gdata_youtube_service_error_quark (void) G_GNUC_CONST;
 
-GDataYouTubeService *gdata_youtube_service_new (const gchar *developer_key, const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT;
+GDataYouTubeService *gdata_youtube_service_new (const gchar *developer_key, const gchar *client_id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 GDataFeed *gdata_youtube_service_query_standard_feed (GDataYouTubeService *self, GDataYouTubeStandardFeedType feed_type, GDataQuery *query,
 						      GCancellable *cancellable,
 						      GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-						      GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						      GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_youtube_service_query_standard_feed_async (GDataYouTubeService *self, GDataYouTubeStandardFeedType feed_type, GDataQuery *query,
 						      GCancellable *cancellable,
 						      GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
@@ -118,20 +118,20 @@ void gdata_youtube_service_query_standard_feed_async (GDataYouTubeService *self,
 
 GDataFeed *gdata_youtube_service_query_videos (GDataYouTubeService *self, GDataQuery *query,
 					       GCancellable *cancellable, GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-					       GError **error) G_GNUC_WARN_UNUSED_RESULT;
+					       GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_youtube_service_query_videos_async (GDataYouTubeService *self, GDataQuery *query,
 					       GCancellable *cancellable, GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
 					       GAsyncReadyCallback callback, gpointer user_data);
 
 GDataFeed *gdata_youtube_service_query_related (GDataYouTubeService *self, GDataYouTubeVideo *video, GDataQuery *query,
 						GCancellable *cancellable, GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-						GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 void gdata_youtube_service_query_related_async (GDataYouTubeService *self, GDataYouTubeVideo *video, GDataQuery *query,
 						GCancellable *cancellable, GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
 						GAsyncReadyCallback callback, gpointer user_data);
 
 GDataYouTubeVideo *gdata_youtube_service_upload_video (GDataYouTubeService *self, GDataYouTubeVideo *video, GFile *video_file,
-						       GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT;
+						       GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_youtube_service_get_developer_key (GDataYouTubeService *self);
 const gchar *gdata_youtube_service_get_youtube_user (GDataYouTubeService *self);
diff --git a/gdata/services/youtube/gdata-youtube-video.h b/gdata/services/youtube/gdata-youtube-video.h
index a0847ff..587882a 100644
--- a/gdata/services/youtube/gdata-youtube-video.h
+++ b/gdata/services/youtube/gdata-youtube-video.h
@@ -146,7 +146,7 @@ typedef struct {
 
 GType gdata_youtube_video_get_type (void) G_GNUC_CONST;
 
-GDataYouTubeVideo *gdata_youtube_video_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT;
+GDataYouTubeVideo *gdata_youtube_video_new (const gchar *id) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 guint gdata_youtube_video_get_view_count (GDataYouTubeVideo *self);
 guint gdata_youtube_video_get_favorite_count (GDataYouTubeVideo *self);
@@ -179,7 +179,7 @@ void gdata_youtube_video_set_recorded (GDataYouTubeVideo *self, const GTimeVal *
 const gchar *gdata_youtube_video_get_aspect_ratio (GDataYouTubeVideo *self);
 void gdata_youtube_video_set_aspect_ratio (GDataYouTubeVideo *self, const gchar *aspect_ratio);
 
-gchar *gdata_youtube_video_get_video_id_from_uri (const gchar *video_uri);
+gchar *gdata_youtube_video_get_video_id_from_uri (const gchar *video_uri) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]