This color information is used for cache to apply another place. So it doesn't get release I know it is the problem in UIkit
framework but it does create any problem.
XCode: potential leak of an object stored into 'cgImage'
-
30-05-2022 - |
Domanda
I am getting a " potential leak" warning when I run Analyze. It's related to the line below. I am using ARC, though I understand that a CGImage is not released under ARC.
textureColor = [UIColor colorWithPatternImage:texture];
I tried to release it with: CGImageRelease((__bridge CGImageRef)(textureColor));
but still have the same issue. Any tips on how to take care of this issue?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow