set decoder member to null onDestroy, so it gets out of scope

This commit is contained in:
Ahmet Inan 2015-02-17 15:41:42 +01:00
parent 32641bdf30
commit 007dbb0a42

View file

@ -136,6 +136,7 @@ public class MainActivity extends Activity {
@Override
protected void onDestroy () {
decoder.destroy();
decoder = null;
manager.cancel(notifyID);
super.onDestroy();
}