https://github.com/maximbilan/watchkit-memory-leak
Example that shows memory leak in WatchKit (FB8665501)
https://github.com/maximbilan/watchkit-memory-leak
Last synced: 7 months ago
JSON representation
Example that shows memory leak in WatchKit (FB8665501)
- Host: GitHub
- URL: https://github.com/maximbilan/watchkit-memory-leak
- Owner: maximbilan
- Created: 2021-06-10T14:13:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-10T14:23:30.000Z (over 4 years ago)
- Last Synced: 2025-05-29T20:40:04.444Z (8 months ago)
- Language: Swift
- Size: 787 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### `WKInterfaceController.reloadRootPageControllers` has a memory leak? (FB8665501)
if you're passing more than 1 context with the same object through `reloadRootPageControllers` function in `WKInterfaceController` the passed context will never be deallocated from memory.
```swift
let context = Context(name: "context")
WKInterfaceController.reloadRootPageControllers(withNames: ["first", "second"], contexts: [context, context], orientation: .horizontal, pageIndex: 0)
```
