An open API service indexing awesome lists of open source software.

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)

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)
```
![Demo!](demo1.png)