X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..df7d93f67bae4a7598dc7058f90f35acb7bd584a:/src/osx/core/dcmemory.cpp diff --git a/src/osx/core/dcmemory.cpp b/src/osx/core/dcmemory.cpp index 1debcb3c0e..9610395377 100644 --- a/src/osx/core/dcmemory.cpp +++ b/src/osx/core/dcmemory.cpp @@ -58,8 +58,7 @@ wxMemoryDCImpl::~wxMemoryDCImpl() if ( m_selected.Ok() ) { m_selected.EndRawAccess() ; - delete m_graphicContext ; - m_graphicContext = NULL ; + wxDELETE(m_graphicContext); } } @@ -68,8 +67,7 @@ void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap ) if ( m_selected.Ok() ) { m_selected.EndRawAccess() ; - delete m_graphicContext ; - m_graphicContext = NULL ; + wxDELETE(m_graphicContext); } m_selected = bitmap;