Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory leak in WkWebView instantiation

I have a Viewcontroller which contains wkwebview when I pop it from the navigation controller I get memory leak

enter image description here

The stack trace leads WkWebview instantiation

enter image description here

I am not using any delegates as well.

I am really wondering what causes this and how to fix this

like image 203
Durai Amuthan.H Avatar asked Sep 06 '16 13:09

Durai Amuthan.H


1 Answers

It is not observed for a long time (at least I can't remember when I met it last time). Just tested in Xcode 11.2 / iOS 13.2. No leaks - neither in simple test project nor in Playground.

Thus, I assume it should be analysed real usage, which introduces leak.

enter image description here

like image 115
Asperi Avatar answered Nov 15 '22 08:11

Asperi