-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Even if I delete it, WebView (or other?) remains. #536
Comments
This case seems to occur on MacOS 👀 |
And I could reproduce this issue on MacOS. |
Will this help? https://stackoverflow.com/questions/21161406/freeing-ios-uiwebview-resources-after-usage -(void) dealloc
{
[self.webview cleanForDealloc];
self.webview = nil;
[super dealloc];
}
|
I think it's this one: https://stackoverflow.com/questions/58454042/wkwebview-instances-and-memory-leak I tried to test it, but i can't get obj-c to cooperate with me 😂 On that note i'm going to re-open this issue because we're leaking memory right now because of this. |
I try to fix this issue based on #536 (comment). |
Also maybe we need to remove WKWebsiteDataStore by using removeDataOfTypes. |
Describe the bug
Let's say you have a program that creates a window to play videos.
And when I created multiple of them and then deleted some, the video in the browser that I had deleted would still be playing.
Steps To Reproduce
Prepare code of
wry/examples/multi_window.rs
.Add a below snipet (YouTube embed) to here str.
Create about five windows every almost few seconds.
After a while, when it gets too noisy, close the window a little at a time and try to get only one.
Then it remains noisy.
So the closed window is still in motion.
Expected behavior
To be successfully closed.
Screenshots
Nothing
Platform and Versions (please complete the following information):
OS: macOS 12.3
Rustc: 1.59.0
Would you assign yourself to resolve this bug?
Additional context
Nothing
The text was updated successfully, but these errors were encountered: