I think you have answered your own question! It does look as if he was quite besotted. There is a small possibility that he meant her to stay in his 'cell' while he was absent, but then he should have made that clear. I think he was quite naive about romantic entanglements.