]> git.sesse.net Git - vlc/blobdiff - modules/access/v4l2.c
Create a function to free the memory allocated when calling
[vlc] / modules / access / v4l2.c
index 27c139fe7d33cc82337830c8e8f2296ab68e7b3f..705eb66c41e53993a26f7e5325e0a92ee9aa6f95 100644 (file)
@@ -2920,7 +2920,7 @@ static void SetAvailControlsByString( vlc_object_t *p_obj, demux_sys_t *p_sys,
             psz_parser = ( *psz_delim ) ? ( psz_delim + 1 ) : psz_delim;
         }
     }
-    var_Change( p_obj, "allcontrols", VLC_VAR_FREELIST, &val, &text );
+    var_FreeList( &val, &text );
 }
 
 /*****************************************************************************