]> git.sesse.net Git - vlc/blobdiff - include/vlc_variables.h
Fix memleak
[vlc] / include / vlc_variables.h
index d7a38ced09e3ced0b4ee9f4c26cbec70add63307..b43a44d25e618253f636d15c2c1a0558fd54911f 100644 (file)
@@ -199,12 +199,8 @@ VLC_EXPORT( int, __var_TriggerCallback, ( vlc_object_t *, const char * ) );
 static inline void __var_AssertType( vlc_object_t *p_obj, const char *psz_name,
                                      int i_expected )
 {
-#ifndef NDEBUG
     const int i_type = __var_Type( p_obj, psz_name ) & VLC_VAR_CLASS;
     assert( i_type == 0 || i_type == (i_expected&VLC_VAR_CLASS) );
-#else
-    (void)p_obj;    (void)psz_name;    (void)i_expected;
-#endif
 }
 
 /**