summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 3bd115bf0..02bfd06ce 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -126,6 +126,7 @@ void connectToServer(const ServerInfo &server)
generalHandler != nullptr)
{
generalHandler->unload();
+ delete2(generalHandler);
}
switch (server.type)