diff --git a/src/common/appbase.cpp b/src/common/appbase.cpp index 4851b5ac80..db26530d66 100644 --- a/src/common/appbase.cpp +++ b/src/common/appbase.cpp @@ -505,7 +505,7 @@ void wxAppConsoleBase::DeletePendingEvents() bool wxAppConsoleBase::IsScheduledForDestruction(wxObject *object) const { - return wxPendingDelete.Member(object); + return wxPendingDelete.Member(object) != NULL; } void wxAppConsoleBase::ScheduleForDestruction(wxObject *object)