git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41537
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
private:
static void InitBuffer();
+ static void CleanUp();
+
+ friend class wxApp; // calls CleanUp() and WakeUp()
private:
static wxIDirectFBEventBufferPtr ms_buffer;
- friend class wxApp; // calls WakeUp()
-
DECLARE_NO_COPY_CLASS(wxEventLoop)
};
{
wxAppBase::CleanUp();
+ wxEventLoop::CleanUp();
wxIDirectFB::CleanUp();
}
ms_buffer = wxIDirectFB::Get()->CreateEventBuffer();
}
+/* static */
+void wxEventLoop::CleanUp()
+{
+ ms_buffer.Reset();
+}
+
/* static */
wxIDirectFBEventBufferPtr wxEventLoop::GetDirectFBEventBuffer()
{
#endif
}
-#warning "FIXME: cleanup wxEventLoop::ms_buffer before exiting"
-
//-----------------------------------------------------------------------------
// DirectFB -> wxWidgets events translation