Tencent / Tencent/libpag

版本(4.3.57)iOS在Cell上使用PAGImageView依然还是会内存泄漏

Open
#2,307 0 comments 0 reactions 1 assignee View on GitHub

@kevingpqi123 is already working on this.

Since May 20, 2024.

Dominant language
HTML
Stars
5.8k
Forks
531
Avg merge
8d 55m
Merged PRs (30d)
17

Description

代码 if ([tag.url hasSuffix:@".pag"]){
if (imageView.isPlaying == NO){
[imageView setPathAsync:tag.url completionBlock:^(PAGFile * file) {
}];
[imageView play];
}
}else{
[imageView xka_setTitleImage:tag.url size:imageView.xka_size];
}

在cell上重复多次滑动就会导致内存泄漏直接闪退,其中tag.url=@"https://osstest.xmblcp.com/sys/title/dynamic/jltx.pag"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.