From fafa828b27c0ce8f4ccb174a00c91c201090dc44 Mon Sep 17 00:00:00 2001 From: Exynox Date: Sat, 24 Aug 2024 22:02:33 +0300 Subject: [PATCH] Fixed incorrect resource de-allocation, closes #29 --- src/game/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/src/main.cpp b/src/game/src/main.cpp index b8785ce..f1e36e9 100644 --- a/src/game/src/main.cpp +++ b/src/game/src/main.cpp @@ -711,12 +711,12 @@ void destroy() if (p2p_listener) { evconnlistener_free(p2p_listener); - tcp_listener = nullptr; + p2p_listener = nullptr; } if (dns_base) { evdns_base_free(dns_base, 0); - ev_base = nullptr; + dns_base = nullptr; } if (ev_base) {