Skip to content
New issue

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

Memory leaks when using GaussianBlur or BoxBlur #139

Open
yangqingren opened this issue Aug 28, 2024 · 0 comments
Open

Memory leaks when using GaussianBlur or BoxBlur #139

yangqingren opened this issue Aug 28, 2024 · 0 comments

Comments

@yangqingren
Copy link

WeChatfb773bb08fa96ad975e4f01fda4755a7
override func viewDidLoad() {
    super.viewDidLoad()
    self.runFilter()
}

func runFilter() {
    
    let testImage = UIImage(named: "WID-small.jpg")!
    let blur = BoxBlur()
    let filteredImage = testImage.filterWithOperation(blur)
    
    DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
        self.runFilter()
    }
}

Hello, the above is my test code

Is there any way to fix my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant