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

BridgeRegister memory leak #585

Open
San4es1er opened this issue Jan 24, 2022 · 0 comments
Open

BridgeRegister memory leak #585

San4es1er opened this issue Jan 24, 2022 · 0 comments

Comments

@San4es1er
Copy link

Xcode version

Version 13.2.1 (13C100)

Swift version

Swift 5

Installation platform & version

Cocoapods 1.11.2

Goals

Using AdjustBridge

Expected results

Deleting an AdjustBridge Instance from Memory(When self.adjustBridge = nil)

Actual results

The AdjustBridge instance remains in memory

Steps to reproduce

    self.adjustBridge = AdjustBridge()
    self.adjustBridge?.loadWKWebViewBridge(webView, wkWebViewDelegate: self)
    self.adjustBridge = nil

Details

Please help
Unfortunately, I do not have suitable experience in Objective-C
I noticed the following behavior:
When an optional AdjustBridge object is initialized and deleted, it remains in memory. Judging by the debug, it is held by the "messageHandlers" dictionary objects that are created by Adjust.
Unlocking the library and applying [_base.messageHandlers removeAllObjects]; before removing gives a result. Please tell me how to fix this issue. Thank you!
memory

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