dispose of old control for new one

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2005-02-03 23:25:22 +00:00
parent 4fc81cbc05
commit 7115e540ec

View File

@@ -404,6 +404,11 @@ void wxQTMediaBackend::FinishLoad()
Rect bounds = wxMacGetBoundsForControl(m_ctrl,
m_ctrl->GetPosition(),
m_ctrl->GetSize());
//Dispose of old control for new one
if (GetControlPeer(m_ctrl) && GetControlPeer(m_ctrl)->Ok() )
GetControlPeer(m_ctrl)->Dispose();
//Options-
//kMovieControlOptionXXX
//HideController - hide the movie controller