X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4db172a3b318df9aff178eb6c5da149d56e0859..90f58090f638b6e2b136e2cb61ad26d55c76747b:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 5ed71e7572..eacfa20a29 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -23,11 +23,11 @@ #include "wx/hash.h" #include "wx/intl.h" #include "wx/log.h" + #include "wx/utils.h" + #include "wx/memory.h" + #include "wx/font.h" #endif -#include "wx/utils.h" -#include "wx/module.h" -#include "wx/memory.h" #include "wx/evtloop.h" #if wxUSE_THREADS @@ -35,7 +35,7 @@ #endif #ifdef __VMS__ -#pragma message disable nosimpint + #pragma message disable nosimpint #endif #include #include @@ -43,7 +43,7 @@ #include #include #ifdef __VMS__ -#pragma message enable nosimpint + #pragma message enable nosimpint #endif #include "wx/motif/private.h" @@ -67,7 +67,6 @@ static void wxTLWidgetDestroyCallback(Widget w, XtPointer clientData, XtPointer ptr); static WXWidget wxCreateTopLevelWidget( WXDisplay* display ); -extern wxList wxPendingDelete; extern bool wxAddIdleCallback(); wxHashTable *wxWidgetHashTable = NULL; @@ -133,8 +132,6 @@ void wxApp::CleanUp() #endif delete it->second; } - - delete m_perDisplayData; } void wxApp::Exit() @@ -162,7 +159,7 @@ wxApp::wxApp() wxApp::~wxApp() { - wxApp::SetInstance(NULL); + delete m_perDisplayData; } int wxApp::MainLoop()