git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36118
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Added wxBitmapButton::SetHoverBitmap()
- Access to titles through Get/SetTitle is available now only for top level
windows (wxDialog, wxFrame).
- Added wxBitmapButton::SetHoverBitmap()
- Access to titles through Get/SetTitle is available now only for top level
windows (wxDialog, wxFrame).
+- Fixed memory leak of pending events in wxEvtHandler
wxENTER_CRIT_SECT( Lock() );
if ( !m_pendingEvents )
wxENTER_CRIT_SECT( Lock() );
if ( !m_pendingEvents )
m_pendingEvents = new wxList;
m_pendingEvents = new wxList;
+ m_pendingEvents->DeleteContents(true);
+ }
m_pendingEvents->Append(eventCopy);
m_pendingEvents->Append(eventCopy);
{
wxEvent *event = (wxEvent *)node->GetData();
{
wxEvent *event = (wxEvent *)node->GetData();
- m_pendingEvents->Erase(node);
-
wxLEAVE_CRIT_SECT( Lock() );
ProcessEvent(*event);
wxLEAVE_CRIT_SECT( Lock() );
ProcessEvent(*event);
wxENTER_CRIT_SECT( Lock() );
wxENTER_CRIT_SECT( Lock() );
+ m_pendingEvents->Erase(node);
+