Samuel Goldwyn Films is partnering with Sony Pictures Worldwide Acquisitions Group to take over distribution on “Welcome to the Rileys,” which was to be distributed by Apparition.

Goldwyn will theatrically distribute the film, starring James Gandolfini, Kristen Stewart and Melissa Leo, this October in the United States and Sony will handle ancillary rights.

Sony and Apparition had announced a distribution deal in March for “Rileys” but Apparition’s status grew cloudy last month when co-founder Bob Berney departed just before the Cannes Film Fest. Reps indicated Wednesday that the companies had mutually agreed for Apparition to back away from handling the pic.

Bill Pohlad’s year-old banner still has Terrence Malick’s “Tree of Life,” starring Brad Pitt and Sean Penn, on its release schedule but without a date.

“Rileys,” which played at the Sundance and Berlin festivals this year, will screen at the Los Angeles Film Festival on Friday.

Pic, directed by commercials and video helmer Jake Scott, centers on a married couple who have grown apart since losing their teenage daughter eight years earlier. The husband, while on a business trip to New Orleans, meets a 17-year-old runaway and the two form a platonic bond.

Michael Costigan, Giovanni Agnelli and Scott Bloom produced with Ridley Scott, Tony Scott, Steven Zaillian, Ken Hixon and Manny Mashouf exec producing. Hixon (“Inventing the Abbotts”) wrote the screenplay.

Goldwyn’s “Harry Brown” is in release and it’s set to open “Mao’s Last Dance,” directed by Bruce Beresford, on Aug. 20.