Merge pull request #3 from crumblingstatue/master

Fix memory errors detected by valgrind
Declare shop_destroy in shop.h