In legal papers filed last week (ends27Mar15), The Hurt Locker star accused Pacheco of leaving the couple's young daughter alone for 15 minutes to attend a party and chose alcohol over breastfeeding.

The actor also accused the Canadian model of plotting to blackmail him by threatening to release intimate videos if he reneged on a deal to help settle her immigration issues.

Pacheco fired back with her own legal papers, insisting her estranged husband was lying, and adding she stopped breastfeeding because her diet was making little Ava gassy.

But now the couple has agreed to put the dispute behind them agreeing to a settlement.

According to TMZ.com, under the terms of the settlement, the actor will share custody with Pacheco and she will get $13,000 (GBP8,600)-a-month for child support.

Pacheco filed for divorce in December (14), ending the couple's 10-month marriage.