src/declarative/debugger/qdeclarativedebugservice.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
--- a/src/declarative/debugger/qdeclarativedebugservice.cpp	Fri Sep 17 08:34:18 2010 +0300
+++ b/src/declarative/debugger/qdeclarativedebugservice.cpp	Mon Oct 04 01:19:32 2010 +0300
@@ -128,6 +128,8 @@
 
     if (d->connection) {
         qWarning("QDeclarativeDebugServer error: another client is already connected");
+        QTcpSocket *faultyConnection = d->tcpServer->nextPendingConnection();
+        delete faultyConnection;
         return;
     }