fix big memory leak in video decoders