summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-10-27 21:09:13 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-10-27 21:09:50 +0200
commite19d48332a7bc8963bc0a58d746a75dc15eeb58c (patch)
tree4e73c9b5be03e54f469e22c181076695f8a9f3d7 /plugingui/eventhandler.cc
parent47c5f5ff8be18d339767c78a1dd77d9a8d766193 (diff)
Test to see if this is related to windows crash.
Diffstat (limited to 'plugingui/eventhandler.cc')
-rw-r--r--plugingui/eventhandler.cc18
1 files changed, 9 insertions, 9 deletions
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<ScrollEvent*>(event);
delta += scrollEvent->delta;
- delete event;
+ //delete event;
event = getNextEvent();
}