fix memory leak. We should call gdImageDestroy for free gdImagePtr
Merge pull request #2 from zver/master

fix memory leak. We should call gdImageDestroy for free gdImagePtr