Fixed memory bugs in monocular VO.