summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-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();
}