fix leak in IOS7

fix leak in IOS7