fix memory leak in PurchaseWithMarket: fixes #54
Merge pull request #55 from vedi/master

fix memory leak in PurchaseWithMarket: fixes #54