Mantis #4144
Fix loop issue on cleanup.
Merge branch 'BUG-4144-Videoplayer_GC_can_stay_in_a_loop_when_cleanup'