We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,你的播放器写得很好。 我在测试的时候发现一个问题:
在 ESTMusicPlayer/Enesco/Handlers/MusicHandler.m 40行代码处: AVURLAsset *audioAsset = [AVURLAsset URLAssetWithURL:[NSURL URLWithString:music.musicUrl] options:nil];
AVURLAsset *audioAsset = [AVURLAsset URLAssetWithURL:[NSURL URLWithString:music.musicUrl] options:nil];
这句,造成,内存没法释放。
测试方法:
AVURLAsset *audioAsset = [AVURLAsset URLAssetWithURL:[NSURL URLWithString:music.musicUrl] options:nil]; return;
[MusicHandler configNowPlayingInfoCenter];
修改成
for (int i = 0; i < 1000; i++) { [MusicHandler configNowPlayingInfoCenter]; }
发现内存泄露了。 Google很久,没发现解决的办法,请教下!
泄漏图:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
你好,你的播放器写得很好。
我在测试的时候发现一个问题:
在 ESTMusicPlayer/Enesco/Handlers/MusicHandler.m 40行代码处:
AVURLAsset *audioAsset = [AVURLAsset URLAssetWithURL:[NSURL URLWithString:music.musicUrl] options:nil];
这句,造成,内存没法释放。
测试方法:
将原来 这句
[MusicHandler configNowPlayingInfoCenter];
修改成
发现内存泄露了。
Google很久,没发现解决的办法,请教下!
泄漏图:
The text was updated successfully, but these errors were encountered: