examples/filtering_video: fix memory leak