Summary of iOS memory leak problems

Summary of iOS memory problems:

    Recently, when doing image filters, there was a memory leak problem. After repeating the filter, there will be a crash. Analyze with Analyze to locate specific lines of code that leak. The following is the specific description:

    1. Find the source of the leak:


 

    2. Find the leaked code :



 

    3. Code to solve the leak problem:



 

Summary: The bottom layer is written in C and must be manually released with CFRelease(), otherwise there will be leakage problems.

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326616124&siteId=291194637