NSXMLParser Leaking

后端 未结 4 967
时光说笑
时光说笑 2020-11-29 06:35

I have the following code that leaks. Instruments says that it is the rssParser object that is leaking. I \"refresh\" the XML feed and it runs the block and it leaks....

4条回答
  •  青春惊慌失措
    2020-11-29 06:38

    I just fixed this by using the method outlined in this post.

    It's a workaround, but it works.

    On another note, I have found that Instruments works reliably in Lion/Xcode 4.1 if you always run it on the device, as opposed to the simulator. On the simulator, it seems to have a devil of a time attaching to the process.

    The NSXMLParser implementation seems to be naturally leaking. There's another leak coming from this library elsewhere in my app that I need to see if I can pin down. That is an asynch call, and this solution doesn't seem to work for that.

提交回复
热议问题