X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/995a95737ac42a180c246f04ba36ea7321ded64f..c13d6ac1ea199d1e3908d40d129e2fd5a4d82df7:/src/x11/app.cpp diff --git a/src/x11/app.cpp b/src/x11/app.cpp index e9c7b2bb17..775f77de6b 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -195,10 +195,8 @@ bool wxApp::Initialize(int& argC, wxChar **argV) void wxApp::CleanUp() { - delete wxWidgetHashTable; - wxWidgetHashTable = NULL; - delete wxClientWidgetHashTable; - wxClientWidgetHashTable = NULL; + wxDELETE(wxWidgetHashTable); + wxDELETE(wxClientWidgetHashTable); wxAppBase::CleanUp(); } @@ -338,7 +336,7 @@ bool wxApp::ProcessXEvent(WXEvent* _event) // If we only have one X11 window, always indicate // that borders might have to be redrawn. - if (win->GetMainWindow() == win->GetClientAreaWindow()) + if (win->X11GetMainWindow() == win->GetClientAreaWindow()) win->NeedUpdateNcAreaInIdle(); // Only erase background, paint in idle time.