fix potential memory leak for CGPathRef