Fixed memory leak while video is playing