summaryrefslogtreecommitdiff
path: root/src/xine-utils/ring_buffer.h
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-23 20:07:00 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-23 20:07:00 +0200
commit08c066cac2efdfcf569e47609e9e1b0a947ce129 (patch)
tree496864a7aee5d95779a777908d66c65355df58d8 /src/xine-utils/ring_buffer.h
parent046552bc9db04ec6296fb8054b5d44270b0b9b0e (diff)
downloadxine-lib-08c066cac2efdfcf569e47609e9e1b0a947ce129.tar.gz
xine-lib-08c066cac2efdfcf569e47609e9e1b0a947ce129.tar.bz2
Mark initialisation functions with malloc attribute.
All the initialisation functions returning a new object instance that was allocated through malloc() or calloc() can get the malloc attribute so that the compiler can optimise their call.
Diffstat (limited to 'src/xine-utils/ring_buffer.h')
-rw-r--r--src/xine-utils/ring_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-utils/ring_buffer.h b/src/xine-utils/ring_buffer.h
index efcffd3b7..5f104dc77 100644
--- a/src/xine-utils/ring_buffer.h
+++ b/src/xine-utils/ring_buffer.h
@@ -22,7 +22,7 @@
typedef struct xine_ring_buffer_s xine_ring_buffer_t;
/* Creates a new ring buffer */
-xine_ring_buffer_t *xine_ring_buffer_new(size_t size) XINE_PROTECTED;
+xine_ring_buffer_t *xine_ring_buffer_new(size_t size) XINE_MALLOC XINE_PROTECTED;
/* Deletes a ring buffer */
void xine_ring_buffer_delete(xine_ring_buffer_t *ring_buffer) XINE_PROTECTED;