summaryrefslogtreecommitdiff
path: root/gdata/gdata-types.h
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-04-01 22:58:46 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2010-04-01 22:58:46 +0100
commitf98aed130bb2275ab4ea50aaec6016562aa54a3a (patch)
tree0bf983f056b44a3e2c8bad302a363c04303af441 /gdata/gdata-types.h
parentb926e8e717f309a7d49c57560b4ad4dbf683b215 (diff)
downloadlibgdata-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-types.h')
-rw-r--r--gdata/gdata-types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdata/gdata-types.h b/gdata/gdata-types.h
index fb5ebef3..9bb2f371 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