X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f2a8de6e754cbbd6d0d7c216c5b44518fae872e..71a09c3579dd5cb4cd8fa7fdc143561cbff74e12:/src/osx/carbon/mediactrl.cpp?ds=sidebyside diff --git a/src/osx/carbon/mediactrl.cpp b/src/osx/carbon/mediactrl.cpp index cdf988e5d8..c3b00f5198 100644 --- a/src/osx/carbon/mediactrl.cpp +++ b/src/osx/carbon/mediactrl.cpp @@ -4,7 +4,6 @@ // Author: Ryan Norton // Modified by: // Created: 11/07/04 -// RCS-ID: $Id$ // Copyright: (c) 2004-2006 Ryan Norton // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -327,7 +326,7 @@ wxQTMediaBackend::~wxQTMediaBackend() // Dispose of the movie controller ::DisposeMovieController(m_mc); m_mc = NULL; - + // Dispose of offscreen GWorld ::DisposeGWorld(m_movieWorld); } @@ -435,7 +434,7 @@ bool wxQTMediaBackend::Load(const wxString& fileName) NULL); // wasChanged // Do not use ::GetMoviesStickyError() here because it returns -2009 - // a.k.a. invalid track on valid mpegs + // a.k.a. invalid track on valid mpegs if (err == noErr && ::GetMoviesError() == noErr) { ::CloseMovieFile(movieResFile); @@ -875,11 +874,7 @@ wxMediaState wxQTMediaBackend::GetState() void wxQTMediaBackend::Cleanup() { m_bPlaying = false; - if (m_timer) - { - delete m_timer; - m_timer = NULL; - } + wxDELETE(m_timer); // Stop the movie: // Apple samples with CreateMovieControl typically @@ -1162,7 +1157,7 @@ pascal void wxQTMediaBackend::PPRMProc( //--------------------------------------------------------------------------- // wxQTMediaBackend::MCFilterProc (static) // -// Callback for when the movie controller recieves a message +// Callback for when the movie controller receives a message //--------------------------------------------------------------------------- pascal Boolean wxQTMediaBackend::MCFilterProc( MovieController WXUNUSED(theController),