From 90cec806ae7115743f88106429142720875557e8 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 13 Dec 2013 01:08:17 +0100 Subject: [PATCH] Fixed another BroadcastReceiver leak. --- src/com/github/nutomic/controldlna/upnp/RemotePlayService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java b/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java index f7e4d41..a6d959a 100644 --- a/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java +++ b/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java @@ -429,7 +429,8 @@ public class RemotePlayService extends Service implements RegistryListener { @Override public void onDestroy() { super.onDestroy(); - unbindService(mUpnpServiceConnection); + unbindService(mUpnpServiceConnection); + unregisterReceiver(mWifiReceiver); } /**