That depends very much on the terms of the contract and how the rights to the work were approached. If the rights were only to transfer upon payment, or not at all, then this action is entirely appropriate.
It sounds very much like this was a freelancer creating a product, not a contractor providing work.
It sounds very much like this was a freelancer creating a product, not a contractor providing work.