fixed potential memory leaks with BodyFrame