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/gdata-download-stream.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/gdata-download-stream.h')
-rw-r--r-- | gdata/gdata-download-stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdata/gdata-download-stream.h b/gdata/gdata-download-stream.h index 5ee4da98..9a220d35 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); |