Fixes small leaks in RxExample app.
This commit is contained in:
parent
85a9dd16b6
commit
fbe038fcb2
|
|
@ -62,7 +62,7 @@ class APIWrappersViewController: ViewController {
|
|||
let av = UIAlertView(title: "Title", message: "The message", delegate: nil, cancelButtonTitle: "Cancel", otherButtonTitles: "OK", "Two", "Three", "Four", "Five")
|
||||
|
||||
openActionSheet.rx_tap
|
||||
.subscribeNext { x in
|
||||
.subscribeNext { [unowned self] x in
|
||||
ash.showInView(self.view)
|
||||
}
|
||||
.addDisposableTo(disposeBag)
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ class CalculatorViewController: ViewController {
|
|||
|
||||
from(commands)
|
||||
.merge()
|
||||
.scan(CLEAR_STATE) { a, x in
|
||||
.scan(CLEAR_STATE) { [unowned self] a, x in
|
||||
return self.tranformState(a, x)
|
||||
}
|
||||
.debug("debugging")
|
||||
|
|
|
|||
Loading…
Reference in New Issue