Fixes small leaks in RxExample app.

This commit is contained in:
Krunoslav Zaher 2015-08-31 12:08:41 +02:00
parent 85a9dd16b6
commit fbe038fcb2
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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")