If the developer owns the code: The violator may offer to make things right by releasing the code. The developer may choose to accept this offer, leaving the lawyer with little.
If the lawyer owns the code: The violator's offer to simply release the code is refused by the lawyers, who go for the jugular and try to bleed the violating company for as much money as they can.