imageWithCGImage leaks according to instrument

2019-09-02 10:34发布

问题:

Below is a screenshot from instrument app.

Is there any explanation what is wrong with that line ?

回答1:

ARC does not manage C-types, of which CGImage may be considered. You must release the ref manually when you are finished with CGImageRelease(image); found the answer hire