Michael Rawlins taste of freedom proved short-lived when he breached a restraining order.
He was sent back to jail within 24 hours of his release.
Rawlins had previously been jailed for breaching the order not to approach Lisa Williams.
But when he was released on Friday, Rawlins went straight around to see her again.
A court heard on Saturday that it was his third breach of the order.
He was jailed for 22 weeks after he admitted breaching the order, which runs until 2018.
When Rawlins, 30, who lives in a flat in Gibson Street, Wrexham went around to Miss Williams’ home in Colwyn Road, Wrexham, he claimed it was in order to find out what his children wanted for Christmas.
But as soon as Miss Williams saw him at the back door she called the police.
He was arrested, admitted what he had done and his solicitor, David Matthews, told Flintshire Magistrates Court at Mold that as a result he would now not see his three children, aged between one and four, at Christmas.
The court heard Miss Williams had a real shock to see him at her home.
She had been warned by social services that he was being released on December 16 but no one told her he had been released early.
Prosecutor Susan Duncombe said Rawlins was released on Friday morning and by 2pm he was at her home.
Miss Williams told him she was calling the police and he mumbled something which she did not understand.
But she heard him say: “I am going back to prison anyway.”
Arrested, Rawlins initially said he was so drunk that he had a memory lapse that afternoon.
But he was breathalysed and that showed he was below 50 microgrammes, compared with the limit of 35 for a driver.
He admitted the breach after viewing CCTV footage showing a man in the same distinctive clothing as his approaching Miss Williams’ house. Mr Matthews said his client had been planning, with the help of his family and social services, to have access to his children over Christmas.
While in prison he had received money from Miss Williams and photographs of the children.
On his release he went around to her home to find out what they wanted for Christmas.
“He was hoping to get away with it but he was caught,” he said.
Rawlins would now pay a heavy price, the solicitor said. “He will be in prison over Christmas and he will not see his children,” Mr Matthews added.
Magistrates said it was a serious matter and they had no alternative to send Rawlins back to jail.
They warned him the order was in place for five years and any further breach would mean a longer sentence.