fix memory leak when using some yuv camera on windows and linux
Define types for ms_list iterate functions.