Fixed BroadcastReceiver being leaked on exit.

This commit is contained in:
Felix Ableitner 2013-12-13 01:02:29 +01:00
parent d2a8aeeb34
commit 5694d45660

View file

@ -206,7 +206,8 @@ public class ServerFragment extends ListFragment implements OnBackPressedListene
@Override @Override
public void onDestroy() { public void onDestroy() {
super.onDestroy(); super.onDestroy();
getActivity().getApplicationContext().unbindService(mUpnpServiceConnection); getActivity().getApplicationContext().unbindService(mUpnpServiceConnection);
getActivity().unregisterReceiver(mWifiReceiver);
} }
/** /**