[vlc-devel] commit: config_ChainCreate: result must be free()'d, so it must be used ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Feb 4 17:43:35 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb  4 18:43:05 2010 +0200| [711d1506666736e6814773dfe637f5784c089323] | committer: Rémi Denis-Courmont 

config_ChainCreate: result must be free()'d, so it must be used

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=711d1506666736e6814773dfe637f5784c089323
---

 include/vlc_configuration.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/vlc_configuration.h b/include/vlc_configuration.h
index dbe3280..e24195b 100644
--- a/include/vlc_configuration.h
+++ b/include/vlc_configuration.h
@@ -284,7 +284,7 @@ VLC_EXPORT( void,   __config_ChainParse, ( vlc_object_t *, const char *psz_prefi
  *
  * The options values are unescaped using config_StringUnescape.
  */
-VLC_EXPORT( char *, config_ChainCreate, ( char **ppsz_name, config_chain_t **pp_cfg, const char *psz_string ) );
+VLC_EXPORT( char *, config_ChainCreate, ( char **ppsz_name, config_chain_t **pp_cfg, const char *psz_string ) ) LIBVLC_USED LIBVLC_MALLOC;
 
 /**
  * This function will release a linked list of config_chain_t




More information about the vlc-devel mailing list