hevc: clear unused refs on failure