From e19d48332a7bc8963bc0a58d746a75dc15eeb58c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 27 Oct 2016 21:09:13 +0200 Subject: Test to see if this is related to windows crash. --- plugingui/eventhandler.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugingui') diff --git a/plugingui/eventhandler.cc b/plugingui/eventhandler.cc index 5fa50e1..62ffb2b 100644 --- a/plugingui/eventhandler.cc +++ b/plugingui/eventhandler.cc @@ -87,12 +87,12 @@ void EventHandler::processEvents() } if(peekEvent->type() != EventType::resize) { - delete peekEvent; + //delete peekEvent; break; } - delete peekEvent; + //delete peekEvent; - delete event; + //delete event; event = getNextEvent(); } @@ -121,12 +121,12 @@ void EventHandler::processEvents() } if(peekEvent->type() != EventType::mouseMove) { - delete peekEvent; + //delete peekEvent; break; } - delete peekEvent; + //delete peekEvent; - delete event; + //delete event; event = getNextEvent(); } @@ -236,15 +236,15 @@ void EventHandler::processEvents() } if(peekEvent->type() != EventType::scroll) { - delete peekEvent; + //delete peekEvent; break; } - delete peekEvent; + //delete peekEvent; auto scrollEvent = static_cast(event); delta += scrollEvent->delta; - delete event; + //delete event; event = getNextEvent(); } -- cgit v1.2.3