ylechelle / OpenUDID

[OpenUDID IS NOW DEPRECATED] Open source initiative for a universal and persistent UDID solution for iOS

Home Page:OpenUDID.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crash in ios9.0、9.1、9.2

littleblacik1212 opened this issue · comments

【OpenUDID valueWithError:】 (in newPatient) (OpenUDID.m:267)

e4991c33-adbf-4b93-91f9-ed6764582109

OpenUDID 库中valueWithError 函数中
appUID = (NSString *) CFUUIDCreateString(NULL, uuid);存在内存泄露
需要
CFStringRef stringRef = CFUUIDCreateString(NULL,uuid);
CFRelease(stringRef);
或者添加__bridge_transfer