[vlc-commits] module_config_get return value must be used and freed.

Rémi Duraffort git at videolan.org
Wed Apr 6 12:01:53 CEST 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Apr  6 11:59:35 2011 +0200| [766d88a62dee3794e19aa96d017ef2359ef82136] | committer: Rémi Duraffort

module_config_get return value must be used and freed.

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

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

diff --git a/include/vlc_modules.h b/include/vlc_modules.h
index af982b2..6e10e45 100644
--- a/include/vlc_modules.h
+++ b/include/vlc_modules.h
@@ -50,7 +50,7 @@ int module_start(vlc_object_t *, module_t *);
 void module_stop(vlc_object_t *, module_t *);
 #define module_stop(o, m) module_stop(VLC_OBJECT(o),m)
 
-VLC_EXPORT( module_config_t *, module_config_get, ( const module_t *, unsigned * ) );
+VLC_EXPORT( module_config_t *, module_config_get, ( const module_t *, unsigned * ) LIBVLC_USED );
 VLC_EXPORT( void, module_config_free, ( module_config_t * ) );
 
 VLC_EXPORT( module_t *, module_hold, (module_t *module) );



More information about the vlc-commits mailing list