X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/08043a1c27d89dd18b7c3d12bc45d777ec4bb97f..a5bb451448bc5abdadd4ded3f3bc18dbbf07fedd:/src/generic/renderg.cpp diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index d2a6c2e516..98a217f0f7 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -6,7 +6,7 @@ // Created: 20.07.2003 // RCS-ID: $Id$ // Copyright: (c) 2003 Vadim Zeitlin -// License: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -32,6 +32,7 @@ #include "wx/settings.h" #include "wx/gdicmn.h" #include "wx/module.h" + #include "wx/control.h" #endif //WX_PRECOMP #include "wx/splitter.h" @@ -182,10 +183,7 @@ wxRendererNative& wxRendererNative::GetGeneric() void wxRendererGeneric::Cleanup() { - if (sm_rendererGeneric) - delete sm_rendererGeneric; - - sm_rendererGeneric = NULL; + wxDELETE(sm_rendererGeneric); } wxRendererGeneric* wxRendererGeneric::sm_rendererGeneric = NULL;