From the documentation for CGPathRelease :
This function is equivalent to CFRelease, except that it does not cause an error if the path parameter is NULL.
In addition to values NULLthat do not lead to errors, you also get some time for the type of compilation time, since the parameter is entered as CGPathRef, rather than CFTypeRef(which is equivalent void *).
source
share