avfilter/vf_decimate: fix memory leaks