当我返回CFDataRef
时。 页: 1
(CFDataRef)MyFunction{
.....
CFDataRef data = CFDataCreate(NULL, buf, bufLen);
free(buf);
return data;
}
There is a memory leak, how to make CFDataRef
autorelease?
the method [data autorelease] doesn t exit.