#ifndef WXTEST_ATL
m_pAX(NULL),
#endif
- m_pWMPPlayer(NULL)
+ m_pWMPPlayer(NULL),
+ m_pWMPSettings(NULL),
+ m_pWMPControls(NULL)
{
m_evthandler = NULL;
#endif
m_pWMPPlayer->Release();
- m_pWMPSettings->Release();
- m_pWMPControls->Release();
+ if (m_pWMPSettings)
+ m_pWMPSettings->Release();
+ if (m_pWMPControls)
+ m_pWMPControls->Release();
}
}