Resolving two potential leaks analyzed by xcode

https://github.com/hirohisa/ImageLoader/issues/8