summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/NetworkSingleton.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-06-16 23:30:46 +0200
committerLukas Pioch <lukas@zgow.de>2017-06-17 07:14:20 +0200
commitbb020bbe78434a221f6d404d7f83e5bd804ed541 (patch)
treeb1e9eb4ed08993d5da648b47e44ac2f4ce99fc81 /src/OSSupport/NetworkSingleton.cpp
parentFixed missing "override" (diff)
downloadcuberite-bb020bbe78434a221f6d404d7f83e5bd804ed541.tar
cuberite-bb020bbe78434a221f6d404d7f83e5bd804ed541.tar.gz
cuberite-bb020bbe78434a221f6d404d7f83e5bd804ed541.tar.bz2
cuberite-bb020bbe78434a221f6d404d7f83e5bd804ed541.tar.lz
cuberite-bb020bbe78434a221f6d404d7f83e5bd804ed541.tar.xz
cuberite-bb020bbe78434a221f6d404d7f83e5bd804ed541.tar.zst
cuberite-bb020bbe78434a221f6d404d7f83e5bd804ed541.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/NetworkSingleton.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/OSSupport/NetworkSingleton.cpp b/src/OSSupport/NetworkSingleton.cpp
index fde39807b..7daf85b76 100644
--- a/src/OSSupport/NetworkSingleton.cpp
+++ b/src/OSSupport/NetworkSingleton.cpp
@@ -149,6 +149,7 @@ void cNetworkSingleton::RunEventLoop(cNetworkSingleton * a_Self)
timeval timeout{}; // Zero timeout - execute immediately
evtimer_add(timer, &timeout);
event_base_loop(a_Self->m_EventBase, EVLOOP_NO_EXIT_ON_EMPTY);
+ event_free(timer);
}