--- a/QTfrontend/hwform.cpp Wed Feb 07 22:35:41 2007 +0000
+++ b/QTfrontend/hwform.cpp Wed Feb 07 22:54:24 2007 +0000
@@ -37,9 +37,10 @@
#include "hwconsts.h"
#include "newnetclient.h"
#include "gamecfgwidget.h"
+#include "netudpserver.h"
HWForm::HWForm(QWidget *parent)
- : QMainWindow(parent), pnetserver(0)
+ : QMainWindow(parent), pnetserver(0), pUdpServer(0)
{
ui.setupUi(this);
@@ -288,6 +289,7 @@
pnetserver = new HWNetServer;
pnetserver->StartServer();
_NetConnect(pnetserver->getRunningHostName(), pnetserver->getRunningPort(), ui.pageNet->editNetNick->text());
+ pUdpServer = new HWNetUdpServer();
}
void HWForm::NetDisconnect()
@@ -298,6 +300,7 @@
hwnet=0;
}
if(pnetserver) {
+ pUdpServer->deleteLater();
pnetserver->StopServer();
delete pnetserver;
pnetserver=0;