don't leak events in wxEvtHandler::QueueEvent when there's no event loop

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2009-02-19 20:57:47 +00:00
parent a1abd1a923
commit 9f54c829ed

View File

@ -1129,7 +1129,11 @@ void wxEvtHandler::QueueEvent(wxEvent *event)
{
// we need an event loop which manages the list of event handlers with
// pending events... cannot proceed without it!
wxLogDebug("No event loop is running!");
wxLogDebug("No event loop is running! Cannot queue this event!");
// anyway delete the given event to avoid memory leaks
delete event;
return;
}
@ -1166,7 +1170,7 @@ void wxEvtHandler::ProcessPendingEvents()
{
// we need an event loop which manages the list of event handlers with
// pending events... cannot proceed without it!
wxLogDebug("No event loop is running!");
wxLogDebug("No event loop is running! Cannot process pending events!");
return;
}