]> git.sesse.net Git - vlc/blobdiff - modules/control/http/mvar.c
Create a function to free the memory allocated when calling
[vlc] / modules / control / http / mvar.c
index c25dd34d29cd6b2c9ae17b55d7003ffdcafd4a27..2cef899c652aff1d76df7081e4122bad8baae20f 100644 (file)
@@ -450,8 +450,7 @@ mvar_t *mvar_InputVarSetNew( intf_thread_t *p_intf, char *name,
     }
     /* clean up everything */
     if( (i_type & VLC_VAR_TYPE) == VLC_VAR_STRING ) free( val.psz_string );
-    var_Change( p_sys->p_input, psz_variable, VLC_VAR_FREELIST, &val_list,
-                &text_list );
+    var_FreeList( &val_list, &text_list );
     return s;
 }