内存泄漏-NSString&网址 [英] Memory Leak - NSString & NSURL

查看:114
本文介绍了内存泄漏-NSString&网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

@property ( nonatomic, strong ) NSURL * urlPath;

self.urlPath = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"bark" ofType:@"caf"]];

运行ARC,部署目标为4.3.仪器在self.urlPath =行上泄漏.

Running ARC, deployment target 4.3. Instruments gives a leak on the self.urlPath = line.

在显示视图之后,将使用self.urlPath来设置AVSoundPlayer.现在,仅在此NSURL行上,在声音播放器上没有指示泄漏.音频会播放,但是在弹出视图时会发生内存泄漏.

The self.urlPath is used later on after the view has appeared to setup the AVSoundPlayer. There is NO leak indicated now on the soundplayer, only on this NSURL line. The audio plays, but when the view is pop'd a memory leak occurs.

现在我在这> 12小时内遇到的任何想法...

Any ideas as I've been at this > 12hrs now...

推荐答案

似乎仅在iOS 6中是Core Foundation中的内存泄漏.

Seems to be a memory leak in Core Foundation only in iOS 6.

因此被归为错误:

错误ID#12699818.

Bug ID# 12699818.

这篇关于内存泄漏-NSString&网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆