Why you think it's stolen when company paid for your time? If the app wasn't successful, would you have considered refunding your salary back to a company?
There's paying for someones time, and then there's going above and beyond. I feel like I shouldn't have gone above and beyond
And to throw it the other way around, when someone works over hours and contributes significantly, but burns out, does the company throw out the unpaid work?