diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2010-04-01 22:58:46 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2010-04-01 22:58:46 +0100 |
commit | f98aed130bb2275ab4ea50aaec6016562aa54a3a (patch) | |
tree | 0bf983f056b44a3e2c8bad302a363c04303af441 /gdata/services/documents/gdata-documents-spreadsheet.h | |
parent | b926e8e717f309a7d49c57560b4ad4dbf683b215 (diff) | |
download | libgdata-f98aed130bb2275ab4ea50aaec6016562aa54a3a.tar.gz |
[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.
Diffstat (limited to 'gdata/services/documents/gdata-documents-spreadsheet.h')
-rw-r--r-- | gdata/services/documents/gdata-documents-spreadsheet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdata/services/documents/gdata-documents-spreadsheet.h b/gdata/services/documents/gdata-documents-spreadsheet.h index 42ef751b..b395f04a 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 |