X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..04fa04d8067d235ab45b5bc05b65f0679634b541:/src/mgl/evtloop.cpp?ds=sidebyside diff --git a/src/mgl/evtloop.cpp b/src/mgl/evtloop.cpp index 861fc56014..5e89f6b8b8 100644 --- a/src/mgl/evtloop.cpp +++ b/src/mgl/evtloop.cpp @@ -4,7 +4,7 @@ // Author: Vaclav Slavik // RCS-ID: $Id$ // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ---------------------------------------------------------------------------- @@ -73,9 +73,9 @@ void wxEventLoopImpl::Dispatch() { event_t evt; - // VS: The code bellow is equal to MGL's EVT_halt implementation, with - // two things added: sleeping (busy waiting is stupid, lets make CPU's - // life a bit easier) and timers updating + // VS: The code below is equal to MGL's EVT_halt implementation, with + // two things added: sleeping (busy waiting is stupid, let's make CPU's + // life a bit easier) and timers updating. // EVT_halt(&evt, EVT_EVERYEVT); for (;;) @@ -143,8 +143,7 @@ int wxGUIEventLoop::Run() OnExit(); int exitcode = m_impl->GetExitCode(); - delete m_impl; - m_impl = NULL; + wxDELETE(m_impl); return exitcode; }