libmpcodecs/vf_pp: import memleak fix from MPlayer.