I would actually go further and say that the law should be that any person that releases a software application, if they want patent protection on that software, they have to submit the source code to some sort of international repository.
And that goes for any update or variation as well. And should the business shut down or cease supporting whatever hardware that software works on, then that source code loses its patent protection and becomes public domain.
