git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31740
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Rect bounds = wxMacGetBoundsForControl(m_ctrl,
m_ctrl->GetPosition(),
m_ctrl->GetSize());
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
//Options-
//kMovieControlOptionXXX
//HideController - hide the movie controller