Memory Leak In line of code

前端 未结 3 804
误落风尘
误落风尘 2021-01-22 12:17

My app is working fine, but when I run instrument for checking for leaks, it shows me a leak at this line of code, in purple with a 100.0% mark:

xmlParser = [[NS         


        
3条回答
  •  面向向阳花
    2021-01-22 12:49

    Do you ever call

    [xmlParser release];
    

    ?

    If not, you should release it when you no longer need it. Perhaps in the dealloc method of the same class in which that line appears.

提交回复
热议问题