diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-23 20:07:00 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-23 20:07:00 +0200 |
commit | 08c066cac2efdfcf569e47609e9e1b0a947ce129 (patch) | |
tree | 496864a7aee5d95779a777908d66c65355df58d8 /src/xine-utils/xmlparser.c | |
parent | 046552bc9db04ec6296fb8054b5d44270b0b9b0e (diff) | |
download | xine-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/xmlparser.c')
-rw-r--r-- | src/xine-utils/xmlparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xine-utils/xmlparser.c b/src/xine-utils/xmlparser.c index 2922135e2..a4917429b 100644 --- a/src/xine-utils/xmlparser.c +++ b/src/xine-utils/xmlparser.c @@ -36,6 +36,7 @@ #include "xineutils.h" #else #define lprintf(...) +#define XINE_MALLOC #endif #include "xmllexer.h" #include "xmlparser.h" @@ -78,7 +79,7 @@ static void free_xml_node(xml_node_t * node) { free(node); } -static xml_property_t * new_xml_property(void) { +static xml_property_t *XINE_MALLOC new_xml_property(void) { xml_property_t * new_property; new_property = (xml_property_t*) malloc(sizeof(xml_property_t)); |