Added initialisation and checks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -724,7 +724,9 @@ wxWMP10MediaBackend::wxWMP10MediaBackend()
|
|||||||
#ifndef WXTEST_ATL
|
#ifndef WXTEST_ATL
|
||||||
m_pAX(NULL),
|
m_pAX(NULL),
|
||||||
#endif
|
#endif
|
||||||
m_pWMPPlayer(NULL)
|
m_pWMPPlayer(NULL),
|
||||||
|
m_pWMPSettings(NULL),
|
||||||
|
m_pWMPControls(NULL)
|
||||||
|
|
||||||
{
|
{
|
||||||
m_evthandler = NULL;
|
m_evthandler = NULL;
|
||||||
@@ -752,7 +754,9 @@ wxWMP10MediaBackend::~wxWMP10MediaBackend()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_pWMPPlayer->Release();
|
m_pWMPPlayer->Release();
|
||||||
|
if (m_pWMPSettings)
|
||||||
m_pWMPSettings->Release();
|
m_pWMPSettings->Release();
|
||||||
|
if (m_pWMPControls)
|
||||||
m_pWMPControls->Release();
|
m_pWMPControls->Release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user