This commit is contained in:
Eric House 2013-11-21 05:26:45 -08:00
parent 08205637de
commit c42271ee31

View file

@ -224,8 +224,14 @@ public class SMSService extends XWService {
@Override
public void onDestroy()
{
unregisterReceiver( m_sentReceiver );
unregisterReceiver( m_receiveReceiver );
if ( null != m_sentReceiver ) {
unregisterReceiver( m_sentReceiver );
m_sentReceiver = null;
}
if ( null != m_receiveReceiver ) {
unregisterReceiver( m_receiveReceiver );
m_receiveReceiver = null;
}
super.onDestroy();
}