summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c7c4683c..e8fe26cb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1047,16 +1047,17 @@ int main(int argc, char *argv[])
}
}
}
+
+#ifdef PACKAGE_VERSION
+ delete versionLabel;
+#endif
+
}
catch (...)
{
logger->log("Exception");
}
-#ifdef PACKAGE_VERSION
- delete versionLabel;
-#endif
-
accountServerConnection->disconnect();
gameServerConnection->disconnect();
chatServerConnection->disconnect();