X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02761f6cd478e3c2c97cf6f93442747f7b029833..fcb29b233888f7012ca6cf486c8287f5463787e0:/src/x11/window.cpp diff --git a/src/x11/window.cpp b/src/x11/window.cpp index d51631aace..9c5f6f49b8 100644 --- a/src/x11/window.cpp +++ b/src/x11/window.cpp @@ -1694,8 +1694,14 @@ int wxNoOptimize::ms_count = 0; class wxWinModule : public wxModule { public: - bool OnInit(); - void OnExit(); + wxWinModule() + { + // we must be cleaned up before the display is closed + AddDependency(wxClassInfo::FindClass(_T("wxX11DisplayModule"))); + } + + virtual bool OnInit(); + virtual void OnExit(); private: DECLARE_DYNAMIC_CLASS(wxWinModule)