apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 989 forks source link

memory leak for hybrid apps with more than one CDVViewController #1071

Closed dbiaz closed 1 year ago

dbiaz commented 3 years ago

Bug Report

Problem

retain cycle causes a memory leak when releasing CDVViewController in a hybrid app

What is expected to happen?

CDVViewController and related objects should be released from memory

What does actually happen?

memory not released

Information

CDVViewController holds a strong reference to CDVWebViewEngine CDVWebViewEngine holds a strong reference to CDVURLSchemeHandler CDVURLSchemeHandler holds a strong reference to CDVViewController

Version information

cordova: cordova-ios 6.1.1 via cocoapods

Checklist