Created
March 24, 2015 23:24
-
-
Save kmdupr33/338f863a42f53b736bdd to your computer and use it in GitHub Desktop.
Show the straightforward way to avoid leaking your subscriber
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends ActionBarActivity implements View.OnClickListener { | |
... | |
@Override | |
protected void onDestroy() { | |
super.onDestroy(); | |
mSubscribtion.unsubscribe(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment