Fixed memory leak issue (added a autorelease pool)