Added fix mentioned in bug #3206
VideoWriter memory leak solved.