clean DFB event buffer on shutdown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,12 +39,13 @@ protected:
|
||||
|
||||
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)
|
||||
};
|
||||
|
||||
|
@@ -57,6 +57,7 @@ void wxApp::CleanUp()
|
||||
{
|
||||
wxAppBase::CleanUp();
|
||||
|
||||
wxEventLoop::CleanUp();
|
||||
wxIDirectFB::CleanUp();
|
||||
}
|
||||
|
||||
|
@@ -52,6 +52,12 @@ void wxEventLoop::InitBuffer()
|
||||
ms_buffer = wxIDirectFB::Get()->CreateEventBuffer();
|
||||
}
|
||||
|
||||
/* static */
|
||||
void wxEventLoop::CleanUp()
|
||||
{
|
||||
ms_buffer.Reset();
|
||||
}
|
||||
|
||||
/* static */
|
||||
wxIDirectFBEventBufferPtr wxEventLoop::GetDirectFBEventBuffer()
|
||||
{
|
||||
@@ -125,8 +131,6 @@ void wxEventLoop::OnNextIteration()
|
||||
#endif
|
||||
}
|
||||
|
||||
#warning "FIXME: cleanup wxEventLoop::ms_buffer before exiting"
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// DirectFB -> wxWidgets events translation
|
||||
|
Reference in New Issue
Block a user