memory leak fix and other way to solve IOS 7 adapt error