Skip to content

Conversation

minggo
Copy link
Contributor

@minggo minggo commented Nov 14, 2019

… deallocated (#20285)

  • In case of iOS 9.3.5 when we show a web view and deallocate the layer it is trying to release memory associated with WKWebView instance, but it hadn’t retained it in the first place. This results in a crash. This commit fixes that crash.

  • Removing the autorelease and retain parts from the WKWebView instantiation.

  • Changes so that we can remove the retain from the property declaration and depend only on manual retain and release of memory

… deallocated (cocos2d#20285) * In case of iOS 9.3.5 when we show a web view and deallocate the layer it is trying to release memory associated with WKWebView instance, but it hadn’t retained it in the first place. This results in a crash. This commit fixes that crash. * Removing the autorelease and retain parts from the WKWebView instantiation. * Changes so that we can remove the retain from the property declaration and depend only on manual retain and release of memory <Deep>
@minggo minggo added this to the 4.0 milestone Nov 14, 2019
@minggo minggo merged commit 3a36e2d into cocos2d:v4 Nov 14, 2019
@minggo minggo deleted the sync-20285 branch November 14, 2019 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants